This commit is contained in:
will 2024-01-09 10:41:18 +00:00 committed by GitHub
commit 64ec808551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,15 @@ $config->getComponentByType('Colymba\\BulkManager\\BulkManager')->setConfig($ref
The available configuration options are:
* 'editableFields' : array of string referencing specific CMS fields available for editing
## Removing and Adding actions
To remove an action call removeBulkAction using the fully namespaced classname.
```php
$gridField->getConfig()->getComponentByType('\Colymba\BulkManager\BulkManager')->removeBulkAction(\Colymba\BulkManager\BulkAction\UnlinkHandler::class);
```
To add an action:
```php
$gridField->getConfig()->getComponentByType('\Colymba\BulkManager\BulkManager')->addBulkAction(\Colymba\BulkManager\BulkAction\UnlinkHandler::class);
```
## Custom actions
You can remove or add individual action or replace them all via `addBulkAction()` and `removeBulkAction()`