avikarsha/yii2-grid

Grid

Installs: 88

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2020-04-25 18:24 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:09:06 UTC


README

Grid

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"avikarsha/yii2-grid": "*"

to the require section of your composer.json file.

Usage

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

<?php 
use avikarsha\grid\GridView;
?>
<?= GridView::widget([
        'dataProvider' => $dataProvider,
        'summary' => '<div class="css-group-head"><i class="css-groups-sign-box">r</i>Retail</div>',
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],
            ...
        ],
        'options'=>['class'=>'css-manage-group-table']
    ]); ?>
?>