Date Input - Writer AI Studio
A user input component that allows users to select a date using a date picker interface.
Fields
| Name | Type | Description | Options |
|---|---|---|---|
| Label | Text | - | - |
| Custom CSS classes | Text | CSS classes, separated by spaces. You can define classes in custom stylesheets. | - |
Events
wf-date-change
Capture changes to this control.
def onchange_handler(state, payload):
# Set the state variable "new_date" to the new value, provided as a YYYY-MM-DD string.
state["new_date"] = payload