コード例 #1
0
ファイル: uibutton.class.php プロジェクト: rtoi/WebFramework
 /**
  * @override
  */
 function PreRender($args = array())
 {
     if (count($args) > 0) {
         if (isset($this->_icon)) {
             $this->opt('icons', array('primary' => "ui-icon-" . $this->_icon));
         }
         if (count($this->_content) == 0) {
             $this->opt('text', false);
         }
     }
     return parent::PreRender($args);
 }
コード例 #2
0
 /**
  * @override
  */
 function PreRender($args = array())
 {
     $this->script("\$('#{$this->id}').autocomplete(" . system_to_json($this->Options) . ");");
     parent::PreRender($args);
 }
コード例 #3
0
 /**
  * @override
  */
 function PreRender($args = array())
 {
     if (count($args) > 0) {
         $controller = $args[0];
         $opts = array();
         if (isset($this->_icon)) {
             $opts['icons'] = array('primary' => "ui-icon-" . $this->_icon);
         }
         if (count($this->_content) == 0) {
             $opts['text'] = false;
         }
         if ($controller instanceof \ScavixWDF\Base\HtmlPage) {
             $controller->addDocReady("\$('#" . $this->id . "').button(" . system_to_json($opts) . ");");
         } else {
             $controller->script("\$('#" . $this->id . "').button(" . system_to_json($opts) . ");");
         }
     }
     return parent::PreRender($args);
 }
コード例 #4
0
 /**
  * @override
  */
 function PreRender($args = array())
 {
     $this->script("\$('#{self}').container(" . system_to_json($this->Options) . ");");
     parent::PreRender($args);
 }