I am strugging to get the Buttons plugin of the DataGrid working.
I have added the following properties to my DataTables::create()
call:
DataTables::create([
"plugins" => ["Buttons"],
"options" => [
"dom" => 'Bfrtip',
"buttons" => [
"copy", "csv", "excel", "pdf", "print"
],
],
...
]);
When I render the report, no buttons are created. However, I get the following messages on the console:
GET http://localhost:8000/koolreport_assets/css/KRDataTables.css net::ERR_ABORTED 404 (Not Found)
registerLink @ VM17166 KoolReport.js:185
(anonymous) @ VM17166 KoolReport.js:145
css @ VM17166 KoolReport.js:144
resources @ VM17166 KoolReport.js:16
init @ VM17166 KoolReport.js:217
(anonymous) @ customeramountowing:401
GET http://localhost:8000/koolreport_assets/js/KRDataTables.js net::ERR_ABORTED 404 (Not Found)
registerScript @ VM17166 KoolReport.js:80
(anonymous) @ VM17166 KoolReport.js:40
js @ VM17166 KoolReport.js:39
(anonymous) @ VM17166 KoolReport.js:37
(anonymous) @ VM17166 KoolReport.js:105
checkScriptsAndCallback @ VM17166 KoolReport.js:102
onScriptLoaded @ VM17166 KoolReport.js:88
load (async)
registerScript @ VM17166 KoolReport.js:78
(anonymous) @ VM17166 KoolReport.js:40
js @ VM17166 KoolReport.js:39
resources @ VM17166 KoolReport.js:12
init @ VM17166 KoolReport.js:217
(anonymous) @ customeramountowing:358
I discovered that if I removed the additional properties from the DataTables::create()
call, I still had the same message. So it may be a separate issue, and I wonder if this is the root cause of the Buttons failing to display.
Any help to resolve these issues would be appreciated.
Best wishes Nick