[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorUINotificationExample extends PhabricatorUIExample { 4 5 public function getName() { 6 return 'Notifications'; 7 } 8 9 public function getDescription() { 10 return hsprintf('Use <tt>JX.Notification</tt> to create notifications.'); 11 } 12 13 public function renderExample() { 14 15 require_celerity_resource('phabricator-notification-css'); 16 Javelin::initBehavior('phabricator-notification-example'); 17 18 $content = javelin_tag( 19 'a', 20 array( 21 'sigil' => 'notification-example', 22 'class' => 'button green', 23 ), 24 'Show Notification'); 25 26 $content = hsprintf('<div style="padding: 1em 3em;">%s</div>', $content); 27 28 return $content; 29 } 30 }
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 |