Skip to main content

Type Alias: GtkCheckButtonProps

GtkCheckButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:2418

Props for the GtkCheckButton widget.

Type Declaration

NameTypeDescriptionDefined in
actionName?stringThe name of the action with which this widget should be associated.generated/jsx.ts:2445
actionTarget?GLib.VariantThe target value of the actionable widget's action.generated/jsx.ts:2447
active?booleanIf the check button is active. Setting active to %TRUE will add the :checked: state to both the check button and the indicator CSS node.generated/jsx.ts:2425
child?Gtk.Widget | nullThe child widget.generated/jsx.ts:2427
children?ReactNode-generated/jsx.ts:2466
group?Gtk.CheckButtonThe check button whose group this widget belongs to.generated/jsx.ts:2429
inconsistent?booleanIf the check button is in an “in between” state. The inconsistent state only affects visual appearance, not the semantics of the button.generated/jsx.ts:2436
label?string | nullText of the label inside the check button, if it contains a label widget.generated/jsx.ts:2438
onActivate()?(self) => void | nullEmitted to when the check button is activated. The ::activate signal on GtkCheckButton is an action signal and emitting it causes the button to animate press then release. Applications should never connect to this signal, but use the CheckButton.:toggled signal. The default bindings for this signal are all forms of the and Enter keys.generated/jsx.ts:2460
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:2472
onToggled()?(self) => void | nullEmitted when the buttons's CheckButton.active property changes.generated/jsx.ts:2465
ref?Ref<Gtk.CheckButton>-generated/jsx.ts:2486
useUnderline?booleanIf set, an underline in the text indicates that the following character is to be used as mnemonic.generated/jsx.ts:2443