Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1004 Bytes

README.md

File metadata and controls

57 lines (39 loc) · 1004 Bytes

Yii2 Title Action

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',
        ],
    ],
]); ?>