2017 © Pedro Peláez
 

yii2-extension yii2-widget-linkpager

yii2 Widget for LinkPager

image

liyunfang/yii2-widget-linkpager

yii2 Widget for LinkPager

  • Friday, November 25, 2016
  • by phpyii
  • Repository
  • 11 Watchers
  • 40 Stars
  • 6,118 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 23 Forks
  • 1 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

yii2-widget-linkpager

LinkPager widgets for Yii Framework 2.0

Increase the pageSize of the page drop-down box Effect picture 1
Effect picture 2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

 composer require --prefer-dist liyunfang/yii2-widget-linkpager

or add, (*4)

"liyunfang/yii2-widget-linkpager": "*"

to the require section of your composer.json file., (*5)

Requirements

This extension require twitter-bootstrap, (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

GridView options php 'filterSelector' => "select[name='".$dataProvider->getPagination()->pageSizeParam."'],input[name='".$dataProvider->getPagination()->pageParam."']", 'pager' => [ 'class' => \liyunfang\pager\LinkPager::className(), //'template' => '{pageButtons} {customPage} {pageSize}', //'pageSizeList' => [10, 20, 30, 50], //'pageSizeMargin' => 'margin-left:5px;margin-right:5px;', //'pageSizeOptions' => ['class' => 'form-control','style' => 'display: inline-block;width:auto;margin-top:0px;']; //'customPageWidth' => 50, //'customPageBefore' => ' Jump to ', //'customPageAfter' => ' Page ', //'customPageMargin' => 'margin-left:5px;margin-right:5px;', //'customPageOptions' => ['class' => 'form-control','style' => 'display: inline-block;margin-top:0px;']; ],, (*8)

ModelSearch ```php public function search($params) { ... $pageSize = isset($params['per-page']) ? intval($params['per-page']) : 10; $dataProvider = new ActiveDataProvider([ 'query' => $query, 'pagination' => ['pageSize' => $pageSize,], ]);, (*9)

``` 2015-09-16 重构代码,增加自定义跳转页面文本框, (*10)

The Versions

25/11 2016

dev-master

9999999-dev https://github.com/liyunfang/yii2-widget-linkpager

yii2 Widget for LinkPager

  Sources   Download

MIT

The Requires

 

by liyunfang

extension yii2 linkpager yii2-widget-linkpager

24/09 2015

1.0.2

1.0.2.0 https://github.com/liyunfang/yii2-widget-linkpager

yii2 Widget for LinkPager

  Sources   Download

MIT

The Requires

 

by liyunfang

extension yii2 linkpager yii2-widget-linkpager

16/09 2015

1.0.1

1.0.1.0 https://github.com/liyunfang/yii2-widget-linkpager

yii2 Widget for LinkPager

  Sources   Download

MIT

The Requires

 

by liyunfang

extension yii2 linkpager yii2-widget-linkpager

07/09 2015

1.0.0

1.0.0.0 https://github.com/liyunfang/yii2-widget-linkpager

yii2 Widget for LinkPager

  Sources   Download

MIT

The Requires

 

by liyunfang

extension yii2 linkpager yii2-widget-linkpager