yera.runtime.blocks.date_picker

Emit a correlated request for a calendar date.

The request carries an ISO-compatible initial date, defaulting to the current date, and a label for the user. Its block identity correlates the submitted date with the waiting app.

Symbols

def request_input_date_picker — Request a calendar date.

request_input_date_picker

request_input_date_picker(
    label: str,
    default_date: date | str | None = None,
) → str

Request a calendar date.

Parameters

label
type: str

Prompt shown alongside the picker.

default_date
type: date | str | None = None

Optional initial date.

Returns

type: str

Block ID identifying the input request.