Skip to content

Commit

Permalink
fix(Documentation): Updated to show third case of needing a custom ti…
Browse files Browse the repository at this point in the history
…tle and a callback
  • Loading branch information
silbinarywolf committed Apr 16, 2016
1 parent 11ee7b0 commit 3428a8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/en/index.md
Expand Up @@ -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);
}
)
));
```
Expand Down

0 comments on commit 3428a8b

Please sign in to comment.