gridview/yii2-gridview

Yii2 GridView with columns chooser and popups

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v2 2020-03-11 13:38 UTC

This package is auto-updated.

Last update: 2024-04-11 23:22:42 UTC


README

Yii2 GridView with columns chooser and popups. It based on kartik GridView and uses its panel with export.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist gridview/yii2-gridview "*"

or add

"gridview/yii2-gridview": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \vladayson\GridView\GridView::widget([
        'dataProvider' => $dataProvider,
        'modelClass' => SomeSearchModel::class,
        'filterView' => '@app/views/search/_search', //search form path 
        'filterViewParams' => [
            'searchModel' => $searchModel,
            'someAnotherData' => $someAnother
        ],
        'columns' => [...], 
]); ?>```