Fix typo in documentation (closes #19, thanks MattyBalaam)
This commit is contained in:
parent
aad2b973ce
commit
b4d6b61ef7
|
@ -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.
|
inline editing component. By default field scaffolding will be used.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$grid->getConfig()->getComponentsByType('GridFieldEditableColumns')->setDisplayFields(array(
|
$grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFields(array(
|
||||||
'FirstField' => function($record, $column, $grid) {
|
'FirstField' => function($record, $column, $grid) {
|
||||||
return new TextField($column);
|
return new TextField($column);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue