sibds/yii2-gridhelper

Helper classes for Yii2 GridView

Installs: 259

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2023-03-28 04:42 UTC

This package is auto-updated.

Last update: 2024-10-28 08:01:03 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'],
        ],```