Skip to main content

Interface: UiToggleGroupDefaultedOptions

Defined in: ui/components/ui-toggle-group-component.ts:8

Fields of UiToggleGroupEcsComponent with a sensible default; callers may omit these.

Properties​

allowSwitchOff​

allowSwitchOff: boolean

Defined in: ui/components/ui-toggle-group-component.ts:17

Whether every toggle in this group can be off at once. false (the default) gives radio-button behavior: exactly one toggle in the group is always on, and clicking the currently-on one is a no-op (there's no "unselect" gesture). true still enforces mutual exclusivity - turning one toggle on turns the others off - but allows the last one to be clicked off, leaving none on.