ybsisgood/grid-bulk-actions

There is no license information available for the latest version (1.0.0) of this package.

Bulk actions extension for yii 2 gridview

Installs: 47

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ybsisgood/grid-bulk-actions

1.0.0 2024-04-25 04:27 UTC

This package is auto-updated.

Last update: 2025-09-25 10:15:53 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ybsisgood/grid-bulk-actions "*"

or add

"ybsisgood/grid-bulk-actions": "*"

to the require section of your composer.json file.

Configuration

If input in GridView

use ybsisgood\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'),
		],
	],
])

?>