Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894172
PhabricatorGestureUIExample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
887 B
Referenced Files
None
Subscribers
None
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
getCategory
(
)
{
return
pht
(
'Technical'
)
;
}
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;'
,
)
,
''
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:30 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127992
Default Alt Text
PhabricatorGestureUIExample.php (887 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment