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'); }
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')); }
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'))); }
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'))); }