Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93032310
PhabricatorUINotificationExample.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
Mon, Nov 25, 16:57
Size
705 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 16:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22561876
Attached To
rPH Phabricator
PhabricatorUINotificationExample.php
View Options
<?php
final
class
PhabricatorUINotificationExample
extends
PhabricatorUIExample
{
public
function
getName
()
{
return
'Notifications'
;
}
public
function
getDescription
()
{
return
hsprintf
(
'Use <tt>JX.Notification</tt> to create notifications.'
);
}
public
function
renderExample
()
{
require_celerity_resource
(
'phabricator-notification-css'
);
Javelin
::
initBehavior
(
'phabricator-notification-example'
);
$content
=
javelin_tag
(
'a'
,
array
(
'sigil'
=>
'notification-example'
,
'class'
=>
'button green'
,
),
'Show Notification'
);
$content
=
hsprintf
(
'<div style="padding: 1em 3em;">%s</div>'
,
$content
);
return
$content
;
}
}
Event Timeline
Log In to Comment