Skip to main content

Radio (라디오) Widget Control

This page lists the Widget Control (Property · Method · Event) you use to control the Radio widget from a script. For an introduction to the widget and how to use it, visit Radio.

info

In the examples below, radioID is the name (ID) you assigned to the Radio widget on the canvas. In a script, access members as widgetID.member.

Widget Control summary

Widget ControlKindSignatureDescription
onChangedEventonChanged = (value) => { ... }Runs when this Radio is selected and the group's value changes

Property

info

Not applicable — the Radio widget has no script-only Property. In scripts, read and write values with the common Widget Control below (getProperty / setProperty).

Method

info

Not applicable — the Radio widget has no dedicated Method. Use the common Widget Control below.

Event

onChanged

Runs when this Radio is selected and the group's value changes. Assign a callback function to define what happens.

  • Kind: Event
  • Parameters: value - the value of the newly selected Radio (string)
  • Returns: None

Example

radioID.onChanged = (value) => {
// value: the value of the newly selected Radio
};

Common Widget Control (all widgets)

note

Every widget supports name-based common Widget Control (Method) such as setProperty, getProperty, and setStyleProperty. See the common reference doc (to be written).