Tabulator Responsive Layout Option

Has anyone successfully implemented the responsive layout option?

I tried to change the default options of the Tabulator Class and options of an instantiation of that class.

Here are the different variations I tried:

Code Sample:

from tabulator.Tabulator import Tabulator

Tabulator.default_options = {"responsive_layout" : "collapse"}
Tabulator.default_options = {"responsiveLayout" : "collapse"}


self.tabulator_1.options={"responsive_layout" : "collapse"}
self.tabulator_1.options={"responsiveLayout" : "collapse"}

Clone link:

https://anvil.works/build#clone:HDUZKY75JEVTACMQ=PKZAY6EBERPHP5E5GVR4DJFL

Tabulator Documentation:

Might be best to ask questions like this a the Tabulator Github discussion page

Not all Tabulator 5 modules are included by default
you’ll need to add the line:

Tabulator.modules.add("ResponsiveLayout")

See docs on adding modules

2 Likes