Npm datatables.net support

Npm datatables.net support

sparkstersajjadsparkstersajjad Posts: 9Questions: 4Answers: 0

this npm("npm install --save datatables.net') is providing only js files. css files are not coming. I have downloade and added manually and it's working locally but when it's come to deployment in live server we are giving 'npm install' that time it's not finding since it's added manually. what is the solution for this?

let me know if any other details are required.

Answers

  • allanallan Posts: 52,661Questions: 1Answers: 8,058 Site admin

    this npm("npm install --save datatables.net') is providing only js files. css files are not coming.

    Correct and this is intentional. Since we support multiple styling frameworks you also need to install the package for the styling framework you want. E.g. for Bootstrap 4:

    npm install --save datatables.net-bs4
    

    This is documented on the npm install page and also shown in the download builder when you select the npm tab at the bottom of the page.

    Allan

Sign In or Register to comment.