Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Bootstrap 5 DataTables using npm

How can I install Bootstrap 5 with data tables using npm? I know for Bootstrap 4 you can use the following.

npm install datatables.net-bs4

Instead, I tried:

npm install datatables.net-bs

Does anyone know how to install Bootstrap 5 DataTables?

like image 305
Naren Verma Avatar asked Dec 23 '20 12:12

Naren Verma


People also ask

Does DataTables work with Bootstrap 5?

DataTables offers full integration with Bootstrap 5 so that your DataTables will match the same look and feel of the rest of your site. Bootstrap 5 provides a number of options for styling HTML tables, giving you flexibility over the table, while ensuring they look very slick.

What is DataTables net DT?

DataTables is a powerful Javascript library for adding interaction features to HTML tables, and while simplicity is a core design principle for the project as a whole, it can appear quite daunting to get started.


2 Answers

Just tried installing datatables bootstrap 5 support via npm, and it looks like it's available.

npm install datatables.net-bs5
like image 70
mitcheljh Avatar answered Nov 15 '22 09:11

mitcheljh


For now, you can use the CDNs for the DataTables Bootstrap 5 integration.

https://cdn.datatables.net/1.10.23/css/dataTables.bootstrap5.css

https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap5.js
like image 45
Karl Hill Avatar answered Nov 15 '22 11:11

Karl Hill