Skip to content

Is it possible to make window recreates in dialog when its on appear? #481

@v-volodin

Description

@v-volodin

I have Calendar in Window and i want to make max_date dynamic somehow. To be day when window appear on screen
def get_date_window() -> Window:
return Window(
Format(text.process_most_important_thing),
Calendar(
id="cal",
on_click=process_date_selected,
config=CalendarConfig(
max_date=date.today()
)
),
state=SettingsState.first_menstruation_day,
parse_mode=ParseMode.HTML
)
And i

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions