PHP code example of zertex / yii2-gridview-pagesize-widget

1. Go to this page and download the library: Download zertex/yii2-gridview-pagesize-widget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zertex / yii2-gridview-pagesize-widget example snippets

 echo \zertex\gridpagesize\GridPageSize::widget(); 
 echo \zertex\gridpagesize\GridPageSize::widget([
    'callback' => function($pageSize = 0) {
        ...
        echo $pageSize;
        ...
    }
]);