mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #4 from Zauberfisch/patch-1
Tweak the inline editing example config.
This commit is contained in:
commit
295681f662
@ -23,10 +23,11 @@ $grid = new GridField(
|
|||||||
'ExampleGrid',
|
'ExampleGrid',
|
||||||
'Example Grid',
|
'Example Grid',
|
||||||
$this->Items(),
|
$this->Items(),
|
||||||
GridFieldConfig_RecordEditor::create()
|
GridFieldConfig::create()
|
||||||
->removeComponentsByType('GridFieldAddNewButton')
|
->addComponent(new GridFieldButtonRow('before'))
|
||||||
->removeComponentsByType('GridFieldDataColumns')
|
->addComponent(new GridFieldToolbarHeader())
|
||||||
->addComponent(new GridFieldEditableColumns(), 'GridFieldEditButton')
|
->addComponent(new GridFieldEditableColumns())
|
||||||
|
->addComponent(new GridFieldDeleteAction())
|
||||||
->addComponent(new GridFieldAddNewInlineButton())
|
->addComponent(new GridFieldAddNewInlineButton())
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user