Skip to content

dixonsatit/yii2-title-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Title action column for gridview

Resources

License

Stars

Watchers

Forks

Packages

No packages published