本文整理汇总了PHP中yii\grid\GridView::renderSection方法的典型用法代码示例。如果您正苦于以下问题:PHP GridView::renderSection方法的具体用法?PHP GridView::renderSection怎么用?PHP GridView::renderSection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\grid\GridView
的用法示例。
在下文中一共展示了GridView::renderSection方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderSection
public function renderSection($name)
{
if ($name == '{tools}') {
return $this->renderTools();
} else {
return parent::renderSection($name);
}
}
示例2: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
if (isset($this->pluginSections[$name])) {
return $this->pluginSections[$name]->run();
} else {
return parent::renderSection($name);
}
}
示例3: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
switch ($name) {
case "{toolbar}":
return $this->renderToolbar();
default:
return parent::renderSection($name);
}
}
示例4: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
switch ($name) {
case '{button}':
return $this->button;
default:
return parent::renderSection($name);
}
}
示例5: renderSection
public function renderSection($name)
{
switch ($name) {
case '{bulkActions}':
return $this->renderBulkActions();
default:
return parent::renderSection($name);
}
}
示例6: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
switch ($name) {
case "{pagesizer}":
return $this->renderPagesizer();
default:
return parent::renderSection($name);
}
}
示例7: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
switch ($name) {
case '{menu}':
return $this->renderMenu();
case '{toolbar}':
return $this->renderToolbar();
case '{pageSize}':
return $this->renderPageSize();
case '{actions}':
return $this->renderActions();
}
return parent::renderSection($name);
}
示例8: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
if (parent::renderSection($name) !== false) {
return parent::renderSection($name);
}
switch ($name) {
case '{buttons}':
return $this->renderButtons();
case '{lengthPicker}':
return $this->renderLengthPicker();
case '{quickSearch}':
return $this->renderQuickSearch();
default:
return false;
}
}
示例9: renderSection
/**
* @param string $name
* @return bool|string
*/
public function renderSection($name)
{
switch ($name) {
case "{beforeTable}":
return $this->renderBeforeTable();
case "{afterTable}":
return $this->renderAfterTable();
case "{perPage}":
return $this->renderPerPage();
default:
return parent::renderSection($name);
}
}
示例10: renderSection
public function renderSection($name)
{
switch ($name) {
case "{settings}":
return $this->renderSettings();
default:
return parent::renderSection($name);
}
}
示例11: renderSection
/**
* @inheritdoc
*/
public function renderSection($name)
{
if ($name === '{caption}') {
return $this->renderCaption();
}
return parent::renderSection($name);
}