Switch

component fbx.ui.control.Switch

Switch is a clickable widget. It has a binary checked state.

../../../_images/switch_no.png

An unchecked switch:

Switch {
    checked: false
}
../../../_images/switch_yes.png

An checked switch

property checked

Current value of the switch button

signal clicked()

Signal raised when the check box gets clicked, either with a mouse or with keyboard.

property enabled

Whether switch accepts user interaction. If this is set to false, the switch appears grayed-out and does not react on hovering.

../../../_images/switch_inactive.png

A non-enabled switch