File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace Yajra \DataTables \Livewire ;
44
5+ use Illuminate \Database \Eloquent \Concerns \HasAttributes ;
56use Illuminate \Support \Facades \Bus ;
67use Illuminate \Support \Facades \Storage ;
78use Livewire \Component ;
89
910class ExportButtonComponent extends Component
1011{
12+ public $ class = 'btn btn-primary ' ;
1113 public $ tableId ;
1214 public $ type = 'csv ' ;
1315 public $ filename = null ;
@@ -54,9 +56,6 @@ public function render()
5456 return view ('datatables-export::export-button ' );
5557 }
5658
57- /**
58- * @return string
59- */
6059 protected function getType (): string
6160 {
6261 return $ this ->type == 'csv ' ? 'csv ' : 'xlsx ' ;
Original file line number Diff line number Diff line change 1515 <button type =" submit"
1616 x-ref =" exportBtn"
1717 :disabled =" $wire.exporting"
18- class =" btn btn-primary "
18+ class =" {{ $class } } "
1919 >Export</button >
2020 </form >
2121
You can’t perform that action at this time.
0 commit comments