/** * @inheritdoc */ protected function renderFilterCellContent() { if ($this->gridType == 'datatable') { if (is_string($this->filter)) { return $this->filter; } elseif ($this->filter === true) { // default search and reset button for all filters return '<div class="margin-bottom-5"><button class="btn btn-sm blue filter-submit margin-bottom"><i class="fa fa-search"></i> Search</button></div><button class="btn btn-sm red filter-cancel"><i class="fa fa-times"></i> Reset</button>'; } } return parent::renderFilterCellContent(); }
/** * Renders the filter cell content. * The default implementation simply renders a space. * This method may be overridden to customize the rendering of the filter cell (if any). * @return string the rendering result */ protected function renderFilterCellContent() { if (!$this->pageSizeOptions) { return parent::renderFilterCellContent(); } return Html::dropDownList($this->grid->dataProvider->pagination->pageSizeParam, $this->grid->dataProvider->pagination->pageSize, $this->pageSizeOptions); }