Deeper Quasar Component Support #5786
Replies: 3 comments
-
|
This is what the ui.tooltip('Hello World').props('anchor="center left"')Check out the docs on this here: |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the suggestion, @jtrip! As @thevinchi pointed out, NiceGUI's with ui.label('Hover me'):
ui.tooltip('Hello World').props(':offset="[0,10]"')(Note the leading colon This works for all Quasar props across all components — see the Styling & Appearance docs. The reason we don't expose every Quasar prop as an explicit Python parameter is that Quasar components can have dozens of props each, and surfacing all of them would make the API overwhelming and hard to maintain. Instead we focus the That said, we're always interested in expanding built-in parameter support for props that users frequently reach for. If you find yourself regularly using a particular prop like |
Beta Was this translation helpful? Give feedback.
-
|
Ah yes, sorry I missed that! Using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering if anyone has thoughts about implementing more of the features of Quasar's components.
For example I noticed the tooltip component works but doesn't support all the options available in Quasar, like the offset prop, which would be nice for making tooltips appear to the side instead of below.
I could look at opening an issue and working on it, but I am not very familiar with NiceGUI's layer that implements the components.
I would guess it would involve extending the class here:
nicegui/elements/tooltip.pyMaybe a method to look for a offset parameter and implement rendering the parameter in the component attribute. And that could be called from the init method.
Beta Was this translation helpful? Give feedback.
All reactions