I have two functions for getting date from user, which are:
def date_selector():
with ui.input('Date') as date:
with date.add_slot('append'):
ui.icon('edit_calendar').on('click', lambda: menu.open()).classes('cursor-pointer')
with ui.menu() as menu:
ui.date().bind_value(date)
s_date = date.value
print(s_date)
return s_date
def tab_date():
ui.label(date_selector())
return
But it is not assign value to s_date. How can I make?