prawee / yii2-grid
Management Yii2 Gridview
Installs: 214
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- kartik-v/yii2-icons: *
- prawee/yii2-fancytree-widget: dev-master
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
This package is auto-updated.
Last update: 2024-12-16 22:35:57 UTC
README
Contains
- ActionAuthColumn
- ActionChildColumn
- ActionColumn
- ActionRuleColumn
- ImageColumn
- MediaColumn
Installation
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"
Usage
ActionColumn
on your grid
.... [ 'class'=>'prawee\grid\ActionColumn', ], .....
ImageColumn
on your grid
.... [ 'class'=>'prawee\grid\ImageColumn', 'attribute'=>'image', 'options'=>[ 'width'=>'40px', ], ], ....
ActionChildColumn
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, ], ], ...
MediaColumn
on your grid
.... [ 'class'=>'prawee\grid\MediaColumn', 'attribute'=>'name', 'format'=>'image', #image,video 'options'=>[ 'width'=>'40px', ], ], ....