Example #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if (empty($this->storageId)) {
         $this->storageId = $this->id . '-settings';
     }
     $this->grid->pluginSections['{settings}'] = $this;
     $this->initFromStorage();
     parent::init();
 }
 public function init()
 {
     if (!isset($this->grid->tableOptions['data'][self::DATA_COLUMNS_ID])) {
         $this->grid->tableOptions['data'][self::DATA_COLUMNS_ID] = $this->getId();
     }
     $this->_selector = 'table[data-' . self::DATA_COLUMNS_ID . "=\"{$this->id}\"]";
     parent::init();
     $this->grid->on(GridView::EVENT_AFTER_INIT, [$this, 'addColumnsId']);
     $this->grid->on(GridView::EVENT_AFTER_RUN, [$this, 'run']);
 }
 public function init()
 {
     if (empty($this->storageId)) {
         $this->storageId = $this->id . '-rows-per-page';
     }
     $this->grid->pluginSections['{rows_per_page}'] = $this;
     foreach ($this->numberRows as $key => $number) {
         $this->numberRows[$number] = $number;
         unset($this->numberRows[$key]);
     }
     $this->grid->on(GridView::EVENT_AFTER_INIT, [$this, 'initRowsPerPage']);
     parent::init();
 }