Option to skip insertion of <style>...</style>?
jkorinth opened this issue · comments
It seems dash_tabulator_min.js always inserts the default style in the form of a <style> tag. Is there any way to stop it from doing that? It makes restyling the CSS really hard, because you have to sprinkle everything with !important.
Could you show an example, might make it easier to track down
Not sure if it's something I did or upstream in react-tabulator or tabulator or even dash
@jkorinth I've just added react-tabulator themes where you can specify in the dash-tabulator constructor one of the existing themes https://github.com/preftech/dash-tabulator#themes
There is also an option to turn off a theme by setting the theme parameter to ""
dash_tabulator.DashTabulator(
id='tabulator',
theme="",
options=options,
downloadButtonType=downloadButtonType,
clearFilterButtonType=clearFilterButtonType,
),
import 'react-tabulator/lib/styles.css'
is still included as it's a requirement for tabulator to work. But the main themes are now configurable.
Assuming this is resolved