File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,27 @@ class PermissionsDataTable extends DataTable
66
66
67
67
3 . Run your queue worker via ` php artisan queue:work ` .
68
68
69
+ ## Export Filename
70
+
71
+ You can set the export filename by setting the property.
72
+
73
+ ``` phpt
74
+ <livewire:export-button :table-id =" $dataTable->getTableAttribute('id')" filename =" my-table.xlsx" />
75
+ <livewire:export-button :table-id =" $dataTable->getTableAttribute('id')" filename =" my-table.csv" />
76
+
77
+ <livewire:export-button :table-id =" $dataTable->getTableAttribute('id')" :filename =" $filename" />
78
+ ```
79
+
80
+ ## Export Type
81
+
82
+ You can set the export type by setting the property to ` csv ` or ` xlsx ` . Default value is ` csv ` .
83
+
84
+ ``` phpt
85
+ <livewire:export-button :table-id =" $dataTable->getTableAttribute('id')" type =" xlsx" />
86
+ <livewire:export-button :table-id =" $dataTable->getTableAttribute('id')" type =" csv" />
87
+ ```
88
+
89
+
69
90
## Contributing
70
91
71
92
Please see [ CONTRIBUTING] ( https://github.com/yajra/laravel-datatables-export/blob/master/.github/CONTRIBUTING.md ) for details.
You can’t perform that action at this time.
0 commit comments