Merge pull request #4 from Zauberfisch/patch-1

Tweak the inline editing example config.
This commit is contained in:
Andrew Short 2013-02-11 23:50:17 -08:00
commit 295681f662

View File

@ -23,11 +23,12 @@ $grid = new GridField(
'ExampleGrid',
'Example Grid',
$this->Items(),
GridFieldConfig_RecordEditor::create()
->removeComponentsByType('GridFieldAddNewButton')
->removeComponentsByType('GridFieldDataColumns')
->addComponent(new GridFieldEditableColumns(), 'GridFieldEditButton')
->addComponent(new GridFieldAddNewInlineButton())
GridFieldConfig::create()
->addComponent(new GridFieldButtonRow('before'))
->addComponent(new GridFieldToolbarHeader())
->addComponent(new GridFieldEditableColumns())
->addComponent(new GridFieldDeleteAction())
->addComponent(new GridFieldAddNewInlineButton())
);
```