Skip to content

Losing Full-Row Width Tabulator #335

Answered by s-cork
kushfest asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the minimal example.
This behaviour is because of the way you're setting the default tabulator options
Setting the Tabulator.default_options inside the init method isn't the right place for it.
These should be defined outside of the class definition.
They're effectively global options and should be set one time.

the fitDataTable option does what it says - it fits the table to the data.
You only see this on the second load.
It doesn't get applied the first load because the the Tabulator.default_options were set after the tabulator component was created.
the second time the page loads the default_options are now set so you're seeing the tabulator component with the fitDataTable l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kushfest
Comment options

Answer selected by s-cork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants