File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,23 @@ $schedule->command('datatables:purge-export')->weekly();
8888You can set the export filename by setting the property.
8989
9090``` html
91-
9291<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.xlsx" />
9392<livewire:export-button :table-id =" $dataTable->getTableId()" filename =" my-table.csv" />
9493
9594<livewire:export-button :table-id =" $dataTable->getTableId()" :filename =" $filename" />
9695```
9796
97+ ## Export Button Name
98+
99+ You can set the export button name by setting the ` buttonName ` property.
100+
101+ ``` html
102+ <!-- Examples demonstrating how to customize the button name for different scenarios -->
103+ <livewire:export-button :table-id =" $dataTable->getTableId()" type =" xlsx" buttonName =" Export Excel" />
104+ <livewire:export-button :table-id =" $dataTable->getTableId()" type =" csv" buttonName =" Export CSV" />
105+
106+ ```
107+
98108## Export Type
99109
100110You can set the export type by setting the property to ` csv ` or ` xlsx ` . Default value is ` xlsx ` .
You can’t perform that action at this time.
0 commit comments