Type of arbitrary data associated with the radio button objects
Protected
Internal
_Array of radio button interaction handlers under management.
Protected
Internal
_Currently selected radio button interaction handler.
Static
prefixedGets a snapshot of all radio button interaction handlers under management.
A new array of managed RadioButtonInteractionHandler instances
Gets the currently selected radio button interaction handler.
Currently selected RadioButtonInteractionHandler or undefined
Adds radio button interactive objects to the managed group.
Variable number of radio button interactive objects to add
Adds a radio button interaction handler to the managed group.
RadioButtonInteractionHandler to add to the group
Optional
context: anyCalls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Optional
context: anyAdd a one-time listener for a given event.
Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof ThreeMouseEventMap<Value>Removes a radio button interactive object from the managed group.
Radio button interactive object to remove from the group
Removes a radio button interaction handler from the managed group.
RadioButtonInteractionHandler to remove
The removed RadioButtonInteractionHandler instance
Remove the listeners of a given event.
Optional
fn: (Optional
context: anyOptional
once: booleanProgrammatically selects a specific radio button in the managed group.
RadioButtonInteractionHandler to select
Sets the specified RadioButtonInteractionHandler as selected and deselects all others in the group, implementing exclusive selection behavior. Emits a "select" event to notify listeners of the selection change.
Manages exclusive selection behavior for radio button interactive objects.
Description
RadioButtonManager coordinates multiple RadioButtonInteractionHandler instances to ensure exclusive selection (only one selected at a time). It extends EventEmitter to broadcast selection changes and provides convenient methods for adding/removing radio buttons from the managed group.
Example
Fires
select - Emitted when selection changes to a different radio button
See