public function addComponent(SimpleComponent $component, $attachTo, $params)
 {
     if ($this->autoCompile) {
         $this->components[] = $component;
     }
     if (isset($attachTo)) {
         $component->attach($attachTo);
     }
     if (isset($params)) {
         if (is_array($params)) {
             $component->setParams($params);
         }
     }
     return $component;
 }
 public function getScript()
 {
     parent::getScript();
     foreach ($this->jsCodes as $jsCode) {
         $this->jquery_code_for_compile[] = $jsCode->compile(array("identifier" => $this->attachTo));
     }
     return $this->compileJQueryCode();
 }
示例#3
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "button";
 }
示例#4
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "selectmenu";
 }
示例#5
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("active" => 0);
     $this->uiName = "accordion";
 }
示例#6
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("value" => 50);
     $this->uiName = "progressbar";
 }
示例#7
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "autocomplete";
     $this->setParam("minLength", 3);
 }
示例#8
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "slider";
     $this->setParam("value", 0);
 }
示例#9
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "tooltip";
 }
示例#10
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("dialogClass" => "no-close");
     $this->addCancelBtn("Annuler");
 }
示例#11
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "spinner";
 }