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