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

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

View File

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