fix(Documentation): Updated to show third case of needing a custom title and a callback

This commit is contained in:
Jake Bentvelzen 2016-04-16 12:59:35 +10:00
parent 11ee7b0647
commit 3428a8b670

View File

@ -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);
}
)
));
```