I think there is a small typo in this instruction

getComponentsByType does not work, but getComponentByType does.
This commit is contained in:
MattyBalaam 2013-06-07 20:00:34 +02:00
parent 8b9ea0e1d6
commit 406ab161ca

View File

@ -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);
},