RowAction is a column for the GridView widget that displays links for viewing and manipulating the items.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist rokorolov/yii2-rowaction-grid "*"
or add
"rokorolov/yii2-rowaction-grid": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
use rokorolov\rowaction\RowAction;
'columns' => [
// ...
[
'class' => RowAction::className(),
'attribute' => 'title',
// you may configure additional properties here
],
]
Comments