I've been looking for ways to adjust the font size for DataTable. The issue I have is somehow the header row's text font size is too large and the height of the row does not auto adjust to fit the text...
I only found parameters for font type, bold, italic, etc in the docs. So any tip would be greatly appreciated!
AFAIK there are no Bokeh model properties that expose this. So that leaves CSS styling in a template, etc. I’m afraid your best best is probably opening up your browser inspector and looking for the relevant DOM elements and their CSS selectors that you could use to style. As a general note, for built-in widgets, etc. we typically prefix any third-parts CSS with “bk-” as you can see in the screen shot below, with all the slickgrid selectors prefixed.
I’ve been looking for ways to adjust the font size for DataTable. The issue I have is somehow the header row’s text font size is too large and the height of the row does not auto adjust to fit the text…
I only found parameters for font type, bold, italic, etc in the docs. So any tip would be greatly appreciated!
AFAIK there are no Bokeh model properties that expose this. So that leaves CSS styling in a template, etc. I’m afraid your best best is probably opening up your browser inspector and looking for the relevant DOM elements and their CSS selectors that you could use to style. As a general note, for built-in widgets, etc. we typically prefix any third-parts CSS with “bk-” as you can see in the screen shot below, with all the slickgrid selectors prefixed.
I’ve been looking for ways to adjust the font size for DataTable. The issue I have is somehow the header row’s text font size is too large and the height of the row does not auto adjust to fit the text…
I only found parameters for font type, bold, italic, etc in the docs. So any tip would be greatly appreciated!