Skip to main content

Type Alias: AdwToggleGroupProps

AdwToggleGroupProps = WidgetProps & object

Defined in: generated/jsx.ts:10656

Props for the AdwToggleGroup widget.

Type Declaration

NameTypeDescriptionDefined in
active?numberThe index of the active toggle. Setting the index to a larger value than the number of toggles in the group unsets the current active toggle. If no toggle is active, the property will be set to INVALID_LIST_POSITION.generated/jsx.ts:10666
activeName?string | nullThe name of the active toggle. The name can be set via AdwToggle.name. If the currently active toggle doesn't have a name, the property will be set to NULL. Set it to NULL to unset the current active toggle.generated/jsx.ts:10675
canShrink?booleanWhether the toggles can be smaller than the natural size of their contents. If set to TRUE, the toggle labels will ellipsize. See Button.can-shrink.generated/jsx.ts:10683
children?ReactNode-generated/jsx.ts:10688
homogeneous?booleanWhether all toggles take the same size.generated/jsx.ts:10685
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:10694
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:10687
ref?Ref<Adw.ToggleGroup>-generated/jsx.ts:10700