Skip to content

Commit 8d02c4c

Browse files
authored
Merge pull request yajra#34 from jidago/patch-2
Add docs for export column.
2 parents a870d4c + 8e51836 commit 8d02c4c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

export-column.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22

33
You can export a column customised header if manually set.
44

5+
<a name="export-column-with-title"></a>
6+
## Export Columns with Custom Title
7+
8+
```php
9+
protected $exportColumns = [
10+
['data' => 'name', 'title' => 'Name'],
11+
['data' => 'email', 'title' => 'Registered Email'],
12+
];
13+
```
14+
515
<a name="export-column"></a>
616
## Export Columns
717

818
```php
919
protected $exportColumns = [
10-
['data' => 'email', 'title' => 'Registered Email'],
20+
'name',
21+
'email',
1122
];
1223
```

0 commit comments

Comments
 (0)