Skip to main content

Type Alias: AdwToggleGroupProps

AdwToggleGroupProps = WidgetProps & object

Defined in: generated/jsx.ts:8667

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:8677
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:8686
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:8694
children?ReactNode-generated/jsx.ts:8701
homogeneous?booleanWhether all toggles take the same size.generated/jsx.ts:8696
onActiveChanged?(active, activeName) => void | nullCallback when the active toggle changes.generated/jsx.ts:8700
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:8698
ref?Ref<Adw.ToggleGroup>-generated/jsx.ts:8702