I'm using data grid with bs4 them and it works fine but when I added buttons the bootstrap style doesn't applied on them Here is my code:
DataTables::create([
"dataSource" => $dataStore,
"themeBase" => "bs4",
"cssClass" => [
"table" => "table tableOutline reportTable table-bordered table-striped table-hover"
],
"plugins" => [
"AutoFill", "ColReorder", "Buttons", "FixedColumns",
"FixedHeader", "KeyTable", "Responsive",
"RowReorder", "Scroller", "SearchPanes"
],
"fastRender" => true,
"options" => [
"paging" => true,
"pageLength" => 10,
"searching" => true,
"colReorder" => true,
"dom" => 'Blfrtip',
"buttons" => [
[
"extend" => 'pdfHtml5',
"orientation" => "portrait",
"pageSize" => "A5",
]
, "excel", "print", "colvis"
],
]
])
Here is the output: