dixonstarter/yii2-title-action

Action column for gridview

Installs: 106

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0.5 2016-04-05 15:45 UTC

This package is auto-updated.

Last update: 2024-04-05 10:04:30 UTC


README

Action column for gridview

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist dixonstarter/yii2-title-action "*"

or add

"dixonstarter/yii2-title-action": "*"

to the require section of your composer.json file.

Usage

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

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'tableOptions'=>['class'=>'table table-hover'],
    'columns' => [
        [
          'attribute'=>'title',
          'linkStyle'=>'buttongroup', // default, buttongroup
          'labelStyle'=>'iconText' // icon,text,iconText
          'class'=>'\dixonstarter\grid\TitleActionColumn',
        ],
    ],
]); ?>