I’m trying to use pn.widgets.Tabulator
to display large-ish table with large amount of columns.
How could I get the Tabulator widget to fit the width of the viewport? When I set its width to an explicit value, for example width=1000
(and height=500
), everything works correctly - I see the horizontal scroll at the bottom of the widget.
However, if I set width_policy='min'
or width_policy='min'
, the Tabulator widget (as opposed to JSONEditor widget, for example) tries to show everything… without any scrollbar, and with the pagination buttons not visible.
How should I configure it (what configuration
options should I set, or what stylesheets
should I provide) to fit its width to the viewport width, and if there are more columns than can be displayed, provide the horizontal scrollbar?