本文整理汇总了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);
}