From 3428a8b6705c0b8a4ca4d69fe139d5f84077348b Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Sat, 16 Apr 2016 12:59:35 +1000 Subject: [PATCH] fix(Documentation): Updated to show third case of needing a custom title and a callback --- docs/en/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/en/index.md b/docs/en/index.md index 504a831..fb1e3be 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -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); + } ) )); ```