From 8e51836d5ac7fb25e048f2ca0304d50484b8326c Mon Sep 17 00:00:00 2001 From: Jeff Idago Date: Tue, 2 Oct 2018 16:10:22 +0800 Subject: [PATCH] Add docs for export column. --- export-column.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/export-column.md b/export-column.md index aad2f09..0295ad8 100644 --- a/export-column.md +++ b/export-column.md @@ -2,11 +2,22 @@ You can export a column customised header if manually set. + +## Export Columns with Custom Title + +```php +protected $exportColumns = [ + ['data' => 'name', 'title' => 'Name'], + ['data' => 'email', 'title' => 'Registered Email'], +]; +``` + ## Export Columns ```php protected $exportColumns = [ - ['data' => 'email', 'title' => 'Registered Email'], + 'name', + 'email', ]; ``` \ No newline at end of file