How to add className to DataTable?

I want to add some Bootstrap styling to my table. How do I add className to dash_table.DataTable?

1 Like

I don’t think it’s possible to set the className of DataTable, but I have previously managed to apply Bootstrap styling to DataTable by compiling Bootstrap myself with a few modifications. I gave some instructions in this post. I’m working on making this a bit more general and then making the compiled stylesheets available to people who might like to use them so that they don’t need to mess around compiling CSS, but I’m not quite there yet.

3 Likes