本文整理匯總了PHP中yii\grid\ActionColumn::renderFilterCellContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP ActionColumn::renderFilterCellContent方法的具體用法?PHP ActionColumn::renderFilterCellContent怎麽用?PHP ActionColumn::renderFilterCellContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類yii\grid\ActionColumn
的用法示例。
在下文中一共展示了ActionColumn::renderFilterCellContent方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renderFilterCellContent
/**
* @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();
}
示例2: 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);
}