Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion export-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@

You can export a column customised header if manually set.

<a name="export-column-with-title"></a>
## Export Columns with Custom Title

```php
protected $exportColumns = [
['data' => 'name', 'title' => 'Name'],
['data' => 'email', 'title' => 'Registered Email'],
];
```

<a name="export-column"></a>
## Export Columns

```php
protected $exportColumns = [
['data' => 'email', 'title' => 'Registered Email'],
'name',
'email',
];
```