Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public function getScript()
 {
     parent::getScript();
     foreach ($this->jsCodes as $jsCode) {
         $this->jquery_code_for_compile[] = $jsCode->compile(array("identifier" => $this->attachTo));
     }
     return $this->compileJQueryCode();
 }
Ejemplo n.º 3
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "button";
 }
Ejemplo n.º 4
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "selectmenu";
 }
Ejemplo n.º 5
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("active" => 0);
     $this->uiName = "accordion";
 }
Ejemplo n.º 6
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("value" => 50);
     $this->uiName = "progressbar";
 }
Ejemplo n.º 7
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "autocomplete";
     $this->setParam("minLength", 3);
 }
Ejemplo n.º 8
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "slider";
     $this->setParam("value", 0);
 }
Ejemplo n.º 9
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "tooltip";
 }
Ejemplo n.º 10
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->params = array("dialogClass" => "no-close");
     $this->addCancelBtn("Annuler");
 }
Ejemplo n.º 11
0
 public function __construct(JsUtils $js)
 {
     parent::__construct($js);
     $this->uiName = "spinner";
 }