sibds/yii2-gridhelper

Helper classes for Yii2 GridView

Installs: 227

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2021-03-31 12:17 UTC

This package is auto-updated.

Last update: 2022-04-29 00:42:23 UTC


README

Helper classes for kartik-v/yii2-grid

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"sibds/yii2-gridhelper": "*"

to the require section of your composer.json file.

Usage

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

'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            [
                'class' => 'sibds\grid\UrlColumn',
                'attribute'=>'id',
            ],
            [
                'class' => 'sibds\grid\UrlColumn',
                'attribute'=>'name',
            ],
            [
                'class' => 'sibds\grid\UrlColumn',
                'attribute'=>'url',
            ],
            ...,

            ['class' => 'sibds\grid\ActionColumn'],
        ],```