CheckBox

component fbx.ui.menu.CheckBox

CheckBox is a menu Item which has a state. Like fbx.ui.control.CheckBox, it may be used as check box or as radio button through a fbx.ui.control.CheckableGroup.

../../../_images/menu_radio.png

A menu action button:

Menu {
  title: "Menu1"

  // ...

  CheckBox { text: "Entry 1"; exclusiveGroup: eg; value: "1"; }
  CheckBox { text: "Entry 2"; exclusiveGroup: eg; value: "2"; }
  CheckBox { text: "Entry 3"; exclusiveGroup: eg; value: "3"; }
  // ...
}

CheckableGroup {
    id: eg
    onValueChanged: console.log("menu generated entry is now", value)
}
property text

Text string printed on the item.

signal clicked()

Signal emitted when item is activated.

property enabled

Whether item accepts user interaction.

property value

A variant value assigned to this check box. If check box is in a CheckableGroup, this value is reflected on fbx.ui.control.CheckableGroup.value when selected.

property exclusiveGroup

A reference to a fbx.ui.control.CheckableGroup used for radio button exclusive selection checking.

Setting this property to null is enough to get out of the group.

property enabled

Whether item accepts user interaction.

property checked

Whether item is currently checked.