Absolutely. And I apologize… But I’m sure you’ve been there: “working for 12 hours straight and brain becoming mushy” Thanks @ThiefMaster
Ok, I managed to install DataTable correctly (I think) by running:
npm install datatables.net
npm install datatables.net-dt
All good, and the table actually works just fine, but I can’t seem to get the styling working
I’m not sure if I’m supposed to install the .css file for it separately (supposedly they are embedded inside datatables.net-dt
, but are not working “out of the box”) and include it in the client folder and then refer to it in the webpack-bundles.json (recompile with the asset builder) and then inject it in code (via self.inject_bundle('main.css', WPBase)
or similar?)
This is how it looks like now (obviously the styles are not loaded for the DataTable):