Using data-table with materialize css styling.

Using data-table with materialize css styling.

utsav642utsav642 Posts: 1Questions: 1Answers: 0

Description of problem: I tried to use https://datatables.net/examples/styling/material.html to render data-table (with some hard-coded data). But, the UI for pagination and search-bar is getting distorted. I suspect that it is due to conflict between materialize css stylesheets and data-table stylesheets. I cannot remove materialize-css from the page as other things are dependent on it. Can anybody help with this ?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    I'm not seeing any distortion on the page you linked to, or am I missing it? If that page is OK, the key is to look at that example there, and ensure you have the necessary files listed on the Javascript and CSS tabs beneath the table, and no others.

    Colin

Sign In or Register to comment.