DOCS Clarify usage of EditableColumns in a pre-scaffolded GridFieldConfig, before edit button

This commit is contained in:
Robbie Averill 2018-10-19 21:17:06 +02:00 committed by GitHub
parent b676d96c5d
commit 856fce1b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,14 @@ $grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFi
Editing data contained in `many_many_extraFields` is supported - just treat it as you would any Editing data contained in `many_many_extraFields` is supported - just treat it as you would any
other field. other field.
**Please note:** If you are using a GridFieldConfig that is scaffolded by GridField by default,
and adding GridFieldEditableColumns into it, you will probably want to add it before the edit and/or
delete buttons:
```php
$gridFieldConfig->addComponent($editableColumns, GridFieldEditButton::class);
```
Multi Class Adding Multi Class Adding
------------------ ------------------