DatePicker (데이트피커) Widget Control
The Widget Controls (Property · Method · Event) you use to control the DatePicker widget from a script. For an introduction to the widget and how to use it, visit DatePicker.
The datepickerID in the examples below is the name (ID) you assigned to the DatePicker widget on the canvas. In a script, access it as widgetID.member.
Widget Control summary
| Widget Control | Kind | Signature | Description |
|---|---|---|---|
selectedDate | Property | datepickerID.selectedDate | Reads the currently selected date as a yyyyMMdd string (read-only) |
onDateSelected | Event | datepickerID.onDateSelected = (date) => { ... } | Runs when the user confirms a date in the picker |
Property
selectedDate
Returns the currently selected date as a yyyyMMdd string. With no date selected, it returns an empty string ('').
- Kind: Property (read-only)
- Type: string (
yyyyMMdd, for example20260714) - Returns: The selected date string, or
''when nothing is selected
Example
const date = datepickerID.selectedDate;
if (date !== '') {
// date example: "20260714"
}
Method
Not applicable — the DatePicker widget has no dedicated Method. Use the common Widget Controls below.
Event
onDateSelected
Runs when the user confirms a date in the picker. The callback receives the confirmed date as an argument.
- Kind: Event
- Handler: A callback function that takes a
dateargument - Parameters:
date- The confirmed date (yyyyMMddstring, for example20260714) - Returns: None
Example
datepickerID.onDateSelected = (date) => {
// date example: "20260714"
};
Common Widget Control (all widgets)
Every widget can use name-based common Widget Controls (Method) such as setProperty / getProperty / setStyleProperty. See the common reference doc (to be written).