mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
DOCS fix removeComponentsByType example
missing namespace
This commit is contained in:
parent
40ed8c7f49
commit
d5960b5efb
@ -65,8 +65,10 @@ a new record. By default it allows them to select the model class for the grid f
|
||||
subclasses. You can control the createable classes using the `setClasses` method.
|
||||
|
||||
```php
|
||||
use SilverStripe\Forms\GridField\GridFieldAddNewButton;
|
||||
|
||||
$grid->getConfig()
|
||||
->removeComponentsByType('GridFieldAddNewButton')
|
||||
->removeComponentsByType(GridFieldAddNewButton::class)
|
||||
->addComponent(new GridFieldAddNewMultiClass());
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user