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();
 }
Exemple #3
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "button";
 }
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "selectmenu";
 }
Exemple #5
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("active" => 0);
     $this->uiName = "accordion";
 }
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("value" => 50);
     $this->uiName = "progressbar";
 }
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "autocomplete";
     $this->setParam("minLength", 3);
 }
Exemple #8
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "slider";
     $this->setParam("value", 0);
 }
Exemple #9
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "tooltip";
 }
Exemple #10
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("dialogClass" => "no-close");
     $this->addCancelBtn("Annuler");
 }
Exemple #11
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "spinner";
 }