Skip to content

Date Popup #263

Closed Answered by falkoschindler
shakamoushie asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

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()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shakamoushie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants