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
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-05 11:17:09 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', ], ], ]); ?>