Skip to main content

ImageRadio (이미지라디오) Widget Control

Widget Control (Property · Method · Event) you use to control the ImageRadio widget from a script. To learn what the widget does and how to use it, visit the ImageRadio doc.

info

The imageradioID in the examples below is the name (ID) you assigned to the ImageRadio widget on the canvas. In a script, access it as widgetID.member.

Widget Control summary

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

Property

info

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

Method

info

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

Event

onChanged

Runs when a tap selects this image radio — that is, when the group's selected value changes to this item's value. Assign the behavior you want to run as a callback function.

  • Kind: Event
  • Parameters: value — the value of the radio just selected (the value applied to the group by the selection), a string
  • Returns: None

Example

imageradioID.onChanged = (value) => {
// value: the value of the selected item
};

Common Widget Control (all widgets)

note

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