webvimark / grid-bulk-actions
Bulk actions extension for yii 2 gridview
Installs: 160 429
Dependents: 14
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 4
Open Issues: 2
This package is auto-updated.
Last update: 2024-10-29 04:03:58 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist webvimark/grid-bulk-actions "*"
or add
"webvimark/grid-bulk-actions": "*"
to the require section of your composer.json
file.
Configuration
If input in GridView
use webvimark\extensions\GridBulkActions\GridBulkActions; <?php GridBulkActions::widget([ 'gridId'=>'user-grid', 'actions'=>[ Url::to(['bulk-activate', 'attribute'=>'status'])=>GridBulkActions::t('app', 'Activate'), Url::to(['bulk-deactivate', 'attribute'=>'status'])=>GridBulkActions::t('app', 'Deactivate'), '----'=>[ Url::to(['bulk-delete'])=>GridBulkActions::t('app', 'Delete'), ], ], ]) ?>