Date Popup #263
-
I couldn't find a date popup. Are there plans to add this widget (with an initial blank date)? Thanks in advance.. |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Jan 20, 2023
Replies: 2 comments
-
@shakamoushie You mean something like QDate? Until it will be included in NiceGUI, you can build your own with a generic from nicegui import ui
from nicegui.element import Element
def handle_change(msg: dict) -> None:
print(msg['args'], flush=True)
date.props(f'model-value={msg["args"]}')
date = Element('q-date').props('model-value=2023/01/01').on('update:model-value', handle_change)
ui.run() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shakamoushie
-
Fantastic @falkoschindler, This is so awesome. Thank you very much :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@shakamoushie You mean something like QDate?
We haven't thought about it. But it would certainly a useful feature.
Until it will be included in NiceGUI, you can build your own with a generic
Element
: