- ActionAuthColumn
- ActionChildColumn
- ActionColumn
- ActionRuleColumn
- ImageColumn
- MediaColumn
on your terminal run this command
php composer.phar require prawee/yii2-grid "dev-master"
or add to composer.json on require path.
"prawee/yii2-grid": "dev-master"
on your grid
....
[
'class'=>'prawee\grid\ActionColumn',
],
.....
on your grid
....
[
'class'=>'prawee\grid\ImageColumn',
'attribute'=>'image',
'options'=>[
'width'=>'40px',
],
],
....
on your grid
...
[
'class'=>'prawee\grid\ActionChildColumn',
],
...
or it have child that's support multi param
...
[
'class'=>'prawee\grid\ActionChildColumn',
'params'=>[
'ref'=>Yii::$app->getRequest()->get('id'),
'station'=>2,
],
],
...
on your grid
....
[
'class'=>'prawee\grid\MediaColumn',
'attribute'=>'name',
'format'=>'image', #image,video
'options'=>[
'width'=>'40px',
],
],
....