public function attached(Mesour\Components\ComponentModel\IContainer $parent) { parent::attached($parent); $this->snippet = $this->createSnippet(); $this->startPrivateSession(true); return $this; }
public function attached(Mesour\Components\ComponentModel\IContainer $parent) { parent::attached($parent); $attributes = $this->getOption(self::WRAPPER, 'attributes'); $attributes = array_merge($attributes, ['data-filter' => $this->getName(), 'data-filter-name' => $this->getParent()->createLinkName()]); $this->setHtmlElement(Mesour\Components\Utils\Html::el($this->getOption(self::WRAPPER, 'el'), $attributes)); }