Making use of Quasar's q-parallax element #3607
josephsikich
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 5 replies
-
for i in range(10):
ui.label(str(i))
with ui.element().classes('w-full h-8') :
with ui.element('q-parallax').add_slot('media'):
ui.image(source='https://cdn.quasar.dev/img/parallax2.jpg').classes('w-full h-8')
ui.label("TEXT").classes('text-white')
for i in range(20):
ui.label(str(i)) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
First off, thank you for all your work. NiceGui has been a pleasure to experiment/work with so far. I especially appreciate all the documentation, and how active you are here and on Reddit, helping out.
My question is regarding making use of Quasar's q-parallax element. I realize that it hasn't been added to NiceGui yet, but I have researched here a bit, and it has been suggested (for other as of yet un-added Quasar elements) that you can still make use of them by doing a ui.element('...'). I have tried the following:
That was based on the most basic example in Quasar's documentation. In any event, that code doesn't work, so I'm not sure if 1. My code is just bad, or 2. The Quasar library included with NiceGui is older, and doesn't have access to q-parallax, as it seems Quasar added it in v2.
The documentation I found in NiceGui's Styling section, is as follows: "NiceGUI uses the Quasar Framework version 1.0 and hence has its full design power."; however, poking around in the NiceGui GitHub repo, I found that falcoschindler updated the following dependency (in nicegui/nicegui/static/quasar.umd.prod.js) ~10 months ago:
Thanks for any help you can provide. I apologize if any of my descriptions are poor, but I have not been involved in any front-end stuff up til now.
Edit:
I managed to get the following working:
Not sure what adding the additional pieces I attempted to copy from the original example did.
Beta Was this translation helpful? Give feedback.
All reactions