當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。