From c9cd586544a9ea35a36adcb8b9fe85aa456cbca5 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Tue, 12 Feb 2013 07:40:19 +0000 Subject: [PATCH] MINOR: better Config for inline editable grid The docs should only provide such a basic, fully working example --- docs/en/index.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index 8a64889..0987c39 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -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()) ); ```