File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ php artisan migrate
45
45
46
46
1 . Add the export-button livewire component on your view file that uses dataTable class.
47
47
48
- ``` php
48
+ ``` html
49
49
<livewire:export-button :table-id =" $dataTable->getTableId()" />
50
50
```
51
51
@@ -76,7 +76,7 @@ $schedule->command('datatables:purge-export')->weekly();
76
76
77
77
You can set the export filename by setting the property.
78
78
79
- ``` php
79
+ ``` html
80
80
<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.xlsx" />
81
81
<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.csv" />
82
82
@@ -87,7 +87,7 @@ You can set the export filename by setting the property.
87
87
88
88
You can set the export type by setting the property to ` csv ` or ` xlsx ` . Default value is ` xlsx ` .
89
89
90
- ``` php
90
+ ``` html
91
91
<livewire:export-button :table-id =" $dataTable->getTableId()" type =" xlsx" />
92
92
<livewire:export-button :table-id =" $dataTable->getTableId()" type =" csv" />
93
93
```
@@ -96,7 +96,7 @@ You can set the export type by setting the property to `csv` or `xlsx`. Default
96
96
97
97
Option 1: You can set the Excel sheet name by setting the property.
98
98
99
- ``` php
99
+ ``` html
100
100
<livewire:export-button :table-id =" $dataTable->getTableId()" sheet-name =" Monthly Report" />
101
101
```
102
102
@@ -184,7 +184,7 @@ Column::make('id')->exportFormat(NumberFormat::FORMAT_TEXT),
184
184
185
185
Option to automatically download the exported file.
186
186
187
- ``` php
187
+ ``` html
188
188
<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.xlsx" auto-download =" true" />
189
189
```
190
190
You can’t perform that action at this time.
0 commit comments