当前位置: 首页>>代码示例>>PHP>>正文


PHP GridView::renderSection方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:vinhhx,项目名称:yii2_basic_startup,代码行数:8,代码来源:GridView.php

示例2: renderSection

 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     if (isset($this->pluginSections[$name])) {
         return $this->pluginSections[$name]->run();
     } else {
         return parent::renderSection($name);
     }
 }
开发者ID:consultnn,项目名称:yii2-custom-grid,代码行数:11,代码来源:GridView.php

示例3: renderSection

 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{toolbar}":
             return $this->renderToolbar();
         default:
             return parent::renderSection($name);
     }
 }
开发者ID:mole-org,项目名称:yii2-admin,代码行数:12,代码来源:GridView.php

示例4: renderSection

 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case '{button}':
             return $this->button;
         default:
             return parent::renderSection($name);
     }
 }
开发者ID:hackvijay,项目名称:yii-qa,代码行数:12,代码来源:GridView.php

示例5: renderSection

 public function renderSection($name)
 {
     switch ($name) {
         case '{bulkActions}':
             return $this->renderBulkActions();
         default:
             return parent::renderSection($name);
     }
 }
开发者ID:yeesoft,项目名称:yii2-yee-core,代码行数:9,代码来源:GridView.php

示例6: renderSection

 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     switch ($name) {
         case "{pagesizer}":
             return $this->renderPagesizer();
         default:
             return parent::renderSection($name);
     }
 }
开发者ID:nkovacs,项目名称:yii2-pagesizer,代码行数:12,代码来源:GridView.php

示例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);
 }
开发者ID:sanchezzzhak,项目名称:kak-grid,代码行数:17,代码来源:GridView.php

示例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;
     }
 }
开发者ID:netis-pl,项目名称:yii2-crud,代码行数:19,代码来源:GridView.php

示例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);
     }
 }
开发者ID:Liv1020,项目名称:cms,代码行数:17,代码来源:GridView.php

示例10: renderSection

 public function renderSection($name)
 {
     switch ($name) {
         case "{settings}":
             return $this->renderSettings();
         default:
             return parent::renderSection($name);
     }
 }
开发者ID:omnilight,项目名称:yz2-admin,代码行数:9,代码来源:GridView.php

示例11: renderSection

 /**
  * @inheritdoc
  */
 public function renderSection($name)
 {
     if ($name === '{caption}') {
         return $this->renderCaption();
     }
     return parent::renderSection($name);
 }
开发者ID:skoro,项目名称:yii2-admin-template,代码行数:10,代码来源:GridView.php


注:本文中的yii\grid\GridView::renderSection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。