Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * @param array $options See http://api.jqueryui.com/autocomplete/
  */
 function __initialize($options = array())
 {
     parent::__initialize("input");
     $this->type = "text";
     $this->Options = $options;
 }
Esempio n. 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);
 }
 /**
  * @override
  */
 function PreRender($args = array())
 {
     $this->script("\$('#{$this->id}').autocomplete(" . system_to_json($this->Options) . ");");
     parent::PreRender($args);
 }
 /**
  * @override
  */
 function PreRender($args = array())
 {
     $this->script("\$('#{self}').container(" . system_to_json($this->Options) . ");");
     parent::PreRender($args);
 }
Esempio n. 6
0
 /**
  * @param string $title Title for header section
  * @param options $options
  */
 function __initialize($title = "TXT_UNKNOWN", $options = array())
 {
     parent::__initialize("div");
     $this->Options = $options;
     $this->title = $title;
 }