API Support bulk editing tools if available

This commit is contained in:
Damian Mooyman 2014-06-18 11:24:04 +12:00
parent b75fc3c51e
commit b7429910d5
2 changed files with 10 additions and 0 deletions

View File

@ -137,6 +137,13 @@ SQL;
$config->addComponent($export = new GridFieldExportButton());
$config->addComponent($print = new GridFieldPrintButton());
/**
* Support for {@link https://github.com/colymba/GridFieldBulkEditingTools}
*/
if(class_exists('GridFieldBulkManager')) {
$config->addComponent(new GridFieldBulkManager());
}
$sort->setThrowExceptionOnBadDataType(false);
$filter->setThrowExceptionOnBadDataType(false);
$pagination->setThrowExceptionOnBadDataType(false);

View File

@ -11,5 +11,8 @@
"require": {
"silverstripe/framework": ">=3.1.0",
"silverstripe/cms": ">=3.1.0"
},
"suggest": {
"colymba/gridfield-bulk-editing-tools": "Allows for bulk management of form submissions"
}
}