[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |