예제 #1
0
파일: Pager.php 프로젝트: mesour/pager
 public function attached(Mesour\Components\ComponentModel\IContainer $parent)
 {
     parent::attached($parent);
     $this->snippet = $this->createSnippet();
     $this->startPrivateSession(true);
     return $this;
 }
예제 #2
0
 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));
 }