-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
Enhancement request: MDTabs 2.0.1 - added 2 examples #1658
Comments
Thank you. Do you have any problems implementing this or can we close this issue? |
I can add tabs (but not their content), and I have a problem adding or changing Tab content. I think the issue is a different time step to that in which the MDTabsPrimary was instantiated. I expect I can workaround by rebuilding the MDTabsPrimary as each tab contents arrives, but there will a (triangular) performance hit due to re-building tab contents on each new tab content. 8 tabs would be a total of 36 tab contents builds. So I'd like an enhancement, the importance of dynamic loading of hidden tab contents in the context of your project as a whole is yours to prioritize. Thanks for your time. |
I tried my assumed workaround, dynamically rebuilding (in Python) both MDTabsPrimary, and also just its children. I ran into problems with tab event scheduling:
This MDLabel instance is the replaced tab content. For the moment I'm out of ideas, so I would like to leave the issue open. |
Okay, thanks for the analysis. I'll check it out... |
Two Examples of changing Content at a later time step.
=====================================================================
Or with swipe:
|
Description of the Feature
I wish to do lazy loading of MDTabsPrimary tabs and tab content with KivyMD 2.X , because the data displayed comes from some server.
Of course I assume I must statically define at least one tab and its contents.
I would like
I was able implement lazy loading of tabs with KivyMD 1.X
Thanks for your time, I think version 2 is great.
The text was updated successfully, but these errors were encountered: