Skip to main content

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.

info

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 ControlKindSignatureDescription
selectedDatePropertydatepickerID.selectedDateReads the currently selected date as a yyyyMMdd string (read-only)
onDateSelectedEventdatepickerID.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 example 20260714)
  • Returns: The selected date string, or '' when nothing is selected

Example

const date = datepickerID.selectedDate;
if (date !== '') {
// date example: "20260714"
}

Method

info

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 date argument
  • Parameters: date - The confirmed date (yyyyMMdd string, for example 20260714)
  • Returns: None

Example

datepickerID.onDateSelected = (date) => {
// date example: "20260714"
};

Common Widget Control (all widgets)

note

Every widget can use name-based common Widget Controls (Method) such as setProperty / getProperty / setStyleProperty. See the common reference doc (to be written).