Menu / 'tooltip' like element inside drawer #3480
-
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Aug 12, 2024
Replies: 2 comments 2 replies
-
Try this: from nicegui import ui
button = ui.button("Click")
with button:
with ui.element('q-popup-proxy').props(":offset='[-80,-45]'"):
with ui.card():
ui.label("Settings")
ui.run() |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was just about to propose something similar: with ui.left_drawer().classes('bg-gray-100'):
with ui.button("Click"):
with ui.menu().props('anchor="top right" self="top left"') as menu:
ui.item("Settings").classes("text-bold")
ui.menu_item("Option 1")
ui.menu_item("Option 2")
ui.menu_item("Close", menu.close) I'm not sure about the pros and cons of @python-and-fiction's |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
frankvp11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was just about to propose something similar:
I'm not sure about the pros and cons of @python-and-fiction's
q-popup-proxy
though.