PHP code example of ybsisgood / grid-bulk-actions

1. Go to this page and download the library: Download ybsisgood/grid-bulk-actions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ybsisgood / grid-bulk-actions example snippets



use ybsisgood\extensions\GridBulkActions\GridBulkActions;

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