PHP code example of markguinn / silverstripe-gridfieldmultiselect
1. Go to this page and download the library: Download markguinn/silverstripe-gridfieldmultiselect 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/ */
markguinn / silverstripe-gridfieldmultiselect example snippets
$gridFieldConfig->addComponents(
new GridFieldCheckboxSelectComponent(),
new GridFieldApplyToMultipleRows(
'emailClients',
'Email Selected Clients',
function($record, $index){
$record->sendEmailToClient();
}
)
);