CheckBox

表示复选框的小部件,可用于选择选项或切换状态。CheckBox小部件支持各种类型的复选框,包括标准复选框、单选按钮和切换。

A widget representing a check box, which can be used for selecting options or toggling states. The CheckBox widget supports various types of checkboxes including standard checks, radio buttons, and toggles.

Props

decoratenametypedescription
walkwalkWalkDefines how the widget should be positioned and sized within its parent.
layoutlayoutLayoutSpecifies the layout properties of the widget.
animatoranimatorAnimatorHandles animations for the widget.
liveicon_walkWalkDefines the position and size of the icon within the checkbox.
livelabel_walkWalkDefines the position and size of the label text within the checkbox.
livelabel_alignAlignSpecifies the alignment of the label text.
redraw, livedraw_checkDrawCheckBoxHandles the drawing properties of the checkbox.
livedraw_textDrawTextHandles the drawing properties of the label text.
livedraw_iconDrawIconHandles the drawing properties of the icon.
livetextRcStringMutThe text label of the checkbox.
livebindStringSpecifies a binding string for the checkbox state.

Event

namedescription
Change(bool)Triggered when the state of the checkbox changes.
NoneNo event.