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
4545
46461 . Add the export-button livewire component on your view file that uses dataTable class.
4747
48- ``` php
48+ ``` html
4949<livewire:export-button :table-id =" $dataTable->getTableId()" />
5050```
5151
@@ -76,7 +76,7 @@ $schedule->command('datatables:purge-export')->weekly();
7676
7777You can set the export filename by setting the property.
7878
79- ``` php
79+ ``` html
8080<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.xlsx" />
8181<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.csv" />
8282
@@ -87,7 +87,7 @@ You can set the export filename by setting the property.
8787
8888You can set the export type by setting the property to ` csv ` or ` xlsx ` . Default value is ` xlsx ` .
8989
90- ``` php
90+ ``` html
9191<livewire:export-button :table-id =" $dataTable->getTableId()" type =" xlsx" />
9292<livewire:export-button :table-id =" $dataTable->getTableId()" type =" csv" />
9393```
@@ -96,7 +96,7 @@ You can set the export type by setting the property to `csv` or `xlsx`. Default
9696
9797Option 1: You can set the Excel sheet name by setting the property.
9898
99- ``` php
99+ ``` html
100100<livewire:export-button :table-id =" $dataTable->getTableId()" sheet-name =" Monthly Report" />
101101```
102102
@@ -184,7 +184,7 @@ Column::make('id')->exportFormat(NumberFormat::FORMAT_TEXT),
184184
185185Option to automatically download the exported file.
186186
187- ``` php
187+ ``` html
188188<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.xlsx" auto-download =" true" />
189189```
190190
You can’t perform that action at this time.
0 commit comments