Replies: 4 comments 5 replies
-
I can't find anything wrong with the code. But you probably don't need to set Maybe it's not working because Quasar animations are not fully loaded? import justpy as jp
def page():
wp = jp.WebPage()
tabs = jp.QTabs(a=wp)
for name in ['A', 'B', 'C']:
jp.QTab(name=name, label=name, a=tabs)
return wp
jp.justpy(page) I only see a blank page. |
Beta Was this translation helpful? Give feedback.
-
I thought we're using Quasar v1? https://v1.quasar.dev/vue-components/tabs#qtabs-api There's no animated prop either, but the examples on that page are animated, that's what baffles me. |
Beta Was this translation helpful? Give feedback.
-
My idea was that maybe JustPy - and therefore also NiceGUI - runs with limited Quasar animations. There seem to be quite some configuration options: https://quasar.dev/options/animations#introduction But this might be a completely wrong direction. A plain JustPy reproduction is usually a good way to find out if NiceGUI is causing the problem or if it already happens with JustPy. |
Beta Was this translation helpful? Give feedback.
-
In NiceGUI 1.0 creating tabs is as simple as follows: from nicegui import ui
from nicegui.element import Element
with Element('q-tabs'):
for name in ['A', 'B', 'C']:
Element('q-tab').props(f'name={name} label={name}')
ui.run(port=1234, uvicorn_reload_includes='*.py, *.html, *.css, *.js') Here I'm using the generic |
Beta Was this translation helpful? Give feedback.
-
Hello,
I added support for QTabs component from JustPy:
However, there is no animation when switching from one tab to another. What am I missing?
In Quasar documentation, the animation is there: https://v1.quasar.dev/vue-components/tabs
Beta Was this translation helpful? Give feedback.
All reactions