mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
fix(Documentation): Updated to show third case of needing a custom title and a callback
This commit is contained in:
parent
11ee7b0647
commit
3428a8b670
@ -44,6 +44,12 @@ $grid->getConfig()->getComponentByType('GridFieldEditableColumns')->setDisplayFi
|
||||
'SecondField' => array(
|
||||
'title' => 'Custom Title',
|
||||
'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