-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve Tabulator style for Fast Templates #2425
Conversation
This is the affect of the change across Tabulator themes fast-tabulator.mp4 |
Will need to look at this closely, getting the dynamic CSS loading working in all cases was quite difficult, so I'd be surprised if this wasn't causing some regression. |
FYI @philippjfr . I will give this a second iteration including creating a seperate But probably we will have to host it our selves for Panel 0.12. |
I now have a nice stylesheet. See https://discourse.holoviz.org/t/tabulator-style-for-fast-templates/2478 |
Having a stylesheet changes the situation a bit. Eventually I would like it to be as easy as possible to use Tabulator with the Fast Templates. And actually not only Tabulator but the most used panes and widgets including matplotlib, plotly etc. I see the following options.
Eventually I would like the Fast templates to select the right themes and/ or includes the right css stylesheet automatically in order to make it as easy as possible to use. What do you recommend @philippjfr ? |
ce8fdee
to
5988d0e
Compare
Codecov Report
@@ Coverage Diff @@
## master #2425 +/- ##
==========================================
- Coverage 83.29% 83.28% -0.01%
==========================================
Files 184 184
Lines 23136 23147 +11
==========================================
+ Hits 19270 19278 +8
- Misses 3866 3869 +3
Continue to review full report at Codecov.
|
Bundled the theme into Panel for now, which means as soon as Panel 0.12 is published it'll be available from the CDN. |
Thanks. I noticed the modifier option. Would it be possible to add a modification based on the theme? That would make it possible to set the Plotly pane theme automatically etc. Removing a lot of friction. |
In theory yes, I think we should just put modifiers on the theme as well, but probably not for 0.12. |
Fixes #2424
During the implementation of this I realized
fast_root.css
without affecting all Tabulator themes.link
element is appended to the bottom of thehead
section which makes it difficult to override styles frompn.config.raw_css
,template.config.raw_css
,fast_root.css
etc.As a consequence I only made one very minor change to
fast_root.css
. Furthermore I updated thetabulator.ts
code to update thelink
element instead of replacing it. It works in my tests. But I am thinking that maybe there was a reason for not doing this in the first place? I also added a small timeout before resizing (to wait for css to load) which worked out nicely in my tests.Further improvements to Tabulator for Fast Templates should probably be done by contributing a Fast theme to Tabulator it self.