mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
I think there is a small typo in this instruction
getComponentsByType does not work, but getComponentByType does.
This commit is contained in:
parent
8b9ea0e1d6
commit
406ab161ca
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user