Esempio n. 1
0
 public function __construct($name = null, Mesour\Components\ComponentModel\IContainer $parent = null)
 {
     parent::__construct($name, $parent);
     $this['mainButton'] = new Mesour\DropDown\MainButton();
     $this->setHtmlElement(Mesour\Components\Utils\Html::el($this->getOption(self::WRAPPER, 'el'), $this->getOption(self::WRAPPER, 'attributes')));
     $this->addComponent(new Control(), 'items');
 }
Esempio n. 2
0
 public function __construct($name = null, Mesour\Components\ComponentModel\IContainer $parent = null)
 {
     if (is_null($name)) {
         throw new Mesour\InvalidStateException('Component name is required.');
     }
     parent::__construct($name, $parent);
     $this->setHtmlElement(Mesour\Components\Utils\Html::el($this->getOption(self::WRAPPER, 'el')));
     $this->addComponent(new Modal('modal'));
 }
Esempio n. 3
0
 public function __construct($name = null, Mesour\Components\ComponentModel\IContainer $parent = null)
 {
     if (is_null($name)) {
         throw new Mesour\InvalidArgumentException('Component name is required.');
     }
     parent::__construct($name, $parent);
     $this->startPrivateSession();
     $this->setHtmlElement(Mesour\Components\Utils\Html::el($this->getOption(self::WRAPPER, 'el'), $this->getOption(self::WRAPPER, 'attributes')));
 }
Esempio n. 4
0
 public function __construct($name = null, Mesour\Components\ComponentModel\IContainer $parent = null)
 {
     parent::__construct($name, $parent);
     $this->setHtmlElement(Mesour\Components\Utils\Html::el($this->getOption(self::WRAPPER, 'el'), $this->getOption(self::WRAPPER, 'attributes')));
 }