Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102694895
PhabricatorGestureUIExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 07:04
Size
819 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 07:04 (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
24397404
Attached To
rPH Phabricator
PhabricatorGestureUIExample.php
View Options
<?php
final
class
PhabricatorGestureUIExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
pht
(
'Gestures'
);
}
public
function
getDescription
()
{
return
pht
(
'Use %s to listen for gesture events. Note that you '
.
'must be in device mode for this to work (you can narrow your browser '
.
'window if you are on a desktop).'
,
phutil_tag
(
'tt'
,
array
(),
'touchable'
));
}
public
function
renderExample
()
{
$id
=
celerity_generate_unique_node_id
();
Javelin
::
initBehavior
(
'phabricator-gesture-example'
,
array
(
'rootID'
=>
$id
,
));
return
javelin_tag
(
'div'
,
array
(
'sigil'
=>
'touchable'
,
'id'
=>
$id
,
'style'
=>
'width: 320px; height: 240px; margin: auto;'
,
),
''
);
}
}
Event Timeline
Log In to Comment