PHP code example of fabriziocaldarelli / yii2-gridview-extended
1. Go to this page and download the library: Download fabriziocaldarelli/yii2-gridview-extended 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/ */
fabriziocaldarelli / yii2-gridview-extended example snippets
<?= \sfmobile\ext\gridViewExtended\GridViewExtended::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'tableOptions' => ['class' => 'table table-striped table-bordered table-hover'],
// 'addActionColumm' => true, // default is true
// 'enableRowClickToView' => true, // default is true
// 'rowClickViewUrl' => ['view'], // default is ['view']
'columns' => [
// ... columns ...
// if $addActionColumn is true (default is true), ActionColumn will be inserted by default
//['class' => 'yii\grid\ActionColumn'],
],
]);
php composer.phar