From 406ab161ca2ae9730f2ec090489a82dea3bf4b39 Mon Sep 17 00:00:00 2001 From: MattyBalaam Date: Fri, 7 Jun 2013 20:00:34 +0200 Subject: [PATCH] I think there is a small typo in this instruction getComponentsByType does not work, but getComponentByType does. --- docs/en/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/index.md b/docs/en/index.md index ae4e63b..4a37e0e 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -37,7 +37,7 @@ You can customise the form fields that are used in the grid by calling `setDispl inline editing component. By default field scaffolding will be used. ```php -$grid->getConfig()->getComponentsByType('GridFieldEditableColumns')->setDisplayFields(array( +$grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFields(array( 'FirstField' => function($record, $column, $grid) { return new TextField($column); },