[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/uiexample/examples/ -> PhabricatorGestureExample.php (source)

   1  <?php
   2  
   3  final class PhabricatorGestureExample extends PhabricatorUIExample {
   4  
   5    public function getName() {
   6      return 'Gestures';
   7    }
   8  
   9    public function getDescription() {
  10      return hsprintf(
  11        'Use <tt>touchable</tt> to listen for gesture events. Note that you '.
  12        'must be in device mode for this to work (you can narrow your browser '.
  13        'window if you are on a desktop).');
  14    }
  15  
  16    public function renderExample() {
  17  
  18      $id = celerity_generate_unique_node_id();
  19  
  20      Javelin::initBehavior(
  21        'phabricator-gesture-example',
  22        array(
  23          'rootID' => $id,
  24        ));
  25  
  26      return javelin_tag(
  27        'div',
  28        array(
  29          'sigil' => 'touchable',
  30          'id' => $id,
  31          'style' => 'width: 320px; height: 240px; margin: auto;',
  32        ),
  33        '');
  34    }
  35  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1