mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #144 from SilbinaryWolf/fix-doc-editablecallback
fix(Documentation): Updated to show third case of needing a custom title and a callback
This commit is contained in:
commit
ec455b8cf5
@ -44,6 +44,12 @@ $grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFi
|
|||||||
'SecondField' => array(
|
'SecondField' => array(
|
||||||
'title' => 'Custom Title',
|
'title' => 'Custom Title',
|
||||||
'field' => 'ReadonlyField'
|
'field' => 'ReadonlyField'
|
||||||
|
),
|
||||||
|
'ThirdField' => array(
|
||||||
|
'title' => 'Custom Title Two',
|
||||||
|
'callback' => function($record, $column, $grid) {
|
||||||
|
return TextField::create($column);
|
||||||
|
}
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user