當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LinkPager::init方法代碼示例

本文整理匯總了PHP中yii\widgets\LinkPager::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP LinkPager::init方法的具體用法?PHP LinkPager::init怎麽用?PHP LinkPager::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在yii\widgets\LinkPager的用法示例。


在下文中一共展示了LinkPager::init方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 public function init()
 {
     parent::init();
     
     $this->prevPageLabel = '上一頁';
     $this->nextPageLabel = '下一頁';
 }
開發者ID:huasxin,項目名稱:lulucms2,代碼行數:7,代碼來源:LinkPager.php

示例2: init

 public function init()
 {
     $default = ['pagination' => $this->paginationSelector, 'next' => $this->nextSelector, 'item' => $this->itemSelector, 'state' => ['isPaused' => !$this->autoStart], 'pjax' => ['container' => $this->pjaxContainer], 'bufferPx' => $this->bufferPx, 'wrapper' => $this->wrapperSelector, 'alwaysHidePagination' => $this->alwaysHidePagination];
     $this->pluginOptions = ArrayHelper::merge($default, $this->pluginOptions);
     InfiniteScrollAsset::register($this->view);
     $this->initInfiniteScroll();
     parent::init();
 }
開發者ID:darkcs,項目名稱:yii2-infinite-scroll,代碼行數:8,代碼來源:InfiniteScrollPager.php

示例3: init

 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->pluginOptions = ArrayHelper::merge(['wrapper' => '.list-view', 'pagination' => '.pagination', 'next' => '.pagination .next a:first', 'bufferPx' => 40, 'pjax' => ['container' => '#scrollPagerPjaxContainer']], $this->pluginOptions);
     ScrollPagerAsset::register($this->view);
     $pluginOptions = Json::encode($this->pluginOptions);
     $this->view->registerJs("\$('{$this->itemsContainer}').scrollPager({$pluginOptions});");
 }
開發者ID:voskobovich,項目名稱:yii2-scroll-pager,代碼行數:11,代碼來源:ScrollPager.php

示例4: init

 /**
  * Initializes the pager.
  */
 public function init()
 {
     $this->nextPageLabel = Yii::t('app', 'Next') . ' »';
     $this->prevPageLabel = '« ' . Yii::t('app', 'Prev.');
     $this->firstPageLabel = Yii::t('app', 'First');
     $this->lastPageLabel = Yii::t('app', 'Last');
     parent::init();
 }
開發者ID:baranov-nt,項目名稱:setyes,代碼行數:11,代碼來源:LinkPager.php

示例5: init

 /**
  * Initializes the pager.
  */
 public function init()
 {
     $this->nextPageLabel = Module::t('Next') . ' »';
     $this->prevPageLabel = '« ' . Module::t('Prev.');
     $this->firstPageLabel = Module::t('First');
     $this->lastPageLabel = Module::t('Last');
     parent::init();
 }
開發者ID:uran1980,項目名稱:yii2-translate-panel,代碼行數:11,代碼來源:LinkPager.php

示例6: init

 public function init()
 {
     parent::init();
     // Enable ajax
     if ($this->targetId) {
         $this->linkOptions['class'] = 'app-ajax';
         $this->linkOptions['data-target-id'] = $this->targetId;
     }
 }
開發者ID:vsguts,項目名稱:crm,代碼行數:9,代碼來源:Pager.php

示例7: init

 public function init()
 {
     $this->activePageCssClass = $this->activeCssClass;
     $this->disabledPageCssClass = $this->disabledCssClass;
     $this->prevPageCssClass = $this->prevCssClass;
     $this->nextPageCssClass = $this->nextCssClass;
     $this->options = ['class' => 'pagination'];
     $this->linkOptions = ['class' => 'paginate_button'];
     parent::init();
     // TODO: Change the autogenerated stub
 }
開發者ID:alejandrososa,項目名稱:AB,代碼行數:11,代碼來源:Paginacion.php

示例8: init

 public function init()
 {
     parent::init();
     $this->options = ['class' => 'dataTables_paginate paging_full_numbers'];
     $this->linkOptions = ['class' => 'paginate_button'];
     $this->activePageCssClass = 'paginate_active';
     $this->disabledPageCssClass = 'paginate_button_disabled';
     $this->firstPageLabel = '首頁';
     $this->prevPageLabel = '上一頁';
     $this->nextPageLabel = '下一頁';
     $this->lastPageLabel = '尾頁';
 }
開發者ID:snowbai,項目名稱:lulucms2,代碼行數:12,代碼來源:AdminLinkPager.php

示例9: init

 public function init()
 {
     parent::init();
     if ($this->pageSizeMargin) {
         Html::addCssStyle($this->pageSizeOptions, $this->pageSizeMargin);
     }
     if ($this->customPageWidth) {
         Html::addCssStyle($this->customPageOptions, 'width:' . $this->customPageWidth . 'px;');
     }
     if ($this->customPageMargin) {
         Html::addCssStyle($this->customPageOptions, $this->customPageMargin);
     }
 }
開發者ID:tqsq2005,項目名稱:Yii2adv,代碼行數:13,代碼來源:LinkPager.php

示例10: init

 /**
  * @inheritdoc
  * @see \yii\widgets\LinkPager::init()
  */
 public function init()
 {
     parent::init();
     if ($this->itemsOrderDesc) {
         $firstPageLabel = $this->firstPageLabel;
         $lastPageLabel = $this->lastPageLabel;
         $this->firstPageLabel = $lastPageLabel;
         $this->lastPageLabel = $firstPageLabel;
         $nextPageLabel = $this->nextPageLabel;
         $prevPageLabel = $this->prevPageLabel;
         $this->nextPageLabel = $prevPageLabel;
         $this->prevPageLabel = $nextPageLabel;
     }
 }
開發者ID:roman444uk,項目名稱:yii2,代碼行數:18,代碼來源:LinkPager.php

示例11: init

 public function init()
 {
     parent::init();
     $this->_page_param = $this->pagination->pageParam;
     $this->_page_size_param = $this->pagination->pageSizeParam;
     $currentPageSize = $this->pagination->getPageSize();
     // Push current pageSize to $this->pageSizeList,
     // unique to avoid duplicating
     if (!in_array($currentPageSize, $this->pageSizeList)) {
         array_unshift($this->pageSizeList, $currentPageSize);
         $this->pageSizeList = array_unique($this->pageSizeList);
         // Sort
         sort($this->pageSizeList, SORT_NUMERIC);
     }
 }
開發者ID:alejandrososa,項目名稱:AB,代碼行數:15,代碼來源:Ordenador.php

示例12: init

 /**
  * @inheridoc
  */
 public function init()
 {
     parent::init();
     $this->initPager();
     echo Html::beginTag($this->wrapper, $this->options);
 }
開發者ID:dlds,項目名稱:yii2-intercooler,代碼行數:9,代碼來源:InfiniteListPager.php

示例13: init

 public function init()
 {
     if ($this->type !== 'simple') {
         UI::addCssClasses($this->options, ['ui', 'pagination']);
         UI::addCssClasses($this->linkOptions, 'item');
         switch ($this->type) {
             case 'menu':
                 UI::addCssClasses($this->options, [self::TYPE_MENU]);
                 break;
             case 'basic':
                 UI::addCssClasses($this->options, [self::TYPE_BASIC]);
                 break;
             default:
                 break;
         }
         switch ($this->size) {
             case 'small':
                 UI::addCssClasses($this->options, self::SIZE_SMALL);
                 break;
             case 'large':
                 UI::addCssClasses($this->options, self::SIZE_LARGE);
                 break;
             case 'huge':
                 UI::addCssClasses($this->options, self::SIZE_HUGE);
                 break;
             default:
                 break;
         }
         UI::addCssClasses($this->options, ['menu']);
     } else {
         $this->simplePagerSetting();
     }
     switch ($this->position) {
         case 'right':
             UI::addCssClasses($this->options, [self::POSITION_RIGHT]);
             break;
         default:
             break;
     }
     parent::init();
 }
開發者ID:Vincent-X,項目名稱:yii2-semantic-ui,代碼行數:41,代碼來源:LinkPager.php

示例14: init

 public function init()
 {
     parent::init();
 }
開發者ID:babagay,項目名稱:razzd,代碼行數:4,代碼來源:Paginator.php

示例15: init

 public function init()
 {
     ActiveAssets::register($this->getView());
     parent::init();
 }
開發者ID:keygenqt,項目名稱:yii2-link-pager-points,代碼行數:5,代碼來源:LinkPager.php


注:本文中的yii\widgets\LinkPager::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。