2017 © Pedro Peláez
 

yii2-extension yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

image

integready/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  • Saturday, February 25, 2017
  • by Stern87
  • Repository
  • 1 Watchers
  • 0 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

yii2-pagesize-widget

PageSize widget is an extension to the Yii2 GridView that enables changing the size of a page on GridView., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist integready/yii2-pagesize-widget "*"

or add, (*4)

"integready/yii2-pagesize-widget": "*"

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

Usage

To use this widget with a GridView, add this widget to the view where the GridView is:, (*6)


and set the filterSelector property of GridView as shown in following example., (*7)

= GridView::widget([
     'dataProvider' => $dataProvider,
     'filterModel' => $searchModel,
        'filterSelector' => 'select[name="per-page"]',
     'columns' => [
         ...
     ],
 ]); ?>

Please note that per-page here is the string you use for pageSizeParam setting of the PageSize widget., (*8)

Configurations

Following properties are available for customizing the widget., (*9)

  • label: Text for the lbel
  • defaultPageSize: This value will be used if there's no page size selected
  • pageSizeParam: The name of the page size parameter used for the pagination widget in your grid view
  • sizes: An array of key values to be used as page sizes. Both kay and value should be integers
  • template: A template string to be used for rendering the elements. Default is '{list} {label}'
  • options: HTML attributes for the <select> element
  • labelOptions: HTML attributes for the <label> element
  • encodeLabel: Whether to encode label text

License

MIT, (*10)

The Versions

25/02 2017

dev-master

9999999-dev https://github.com/integready/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

The Development Requires

by IntegReady

extension yii2 widget grid-view page-size

25/02 2017

v2.0.3

2.0.3.0 https://github.com/integready/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

The Development Requires

by IntegReady

extension yii2 widget grid-view page-size

08/09 2016

v2.0.2

2.0.2.0 https://github.com/dieruckus/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

extension yii2 widget grid-view page-size

14/11 2014

v2.0.1

2.0.1.0 https://github.com/nterms/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

extension yii2 widget grid-view page-size

12/11 2014

2.0.0

2.0.0.0 https://github.com/nterms/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

extension yii2 widget grid-view page-size

08/08 2014

0.1.0

0.1.0.0 https://github.com/nterms/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

  Sources   Download

MIT

The Requires

 

extension yii2 widget grid-view page-size