AquaRadioButtonGroup¶
Overview¶
AquaRadioButtonGroup creates a group of AquaRadioButtons and manages their layout.
@author Sam Reid (PhET Interactive Simulations) @author Chris Malley (PixelZoom, Inc.)
Class AquaRadioButtonGroup¶
Constructor¶
new AquaRadioButtonGroup( property : PhetioProperty<T>, items : AquaRadioButtonGroupItem<T>[], providedOptions? : AquaRadioButtonGroupOptions )¶
Instance Methods¶
dispose()¶
getButton( value : T ) : AquaRadioButton<T>¶
Gets the radio button that corresponds to the specified value.
Instance Properties¶
onInputEmitter : TEmitter¶
(readonly)
Type AquaRadioButtonGroupItem¶
- value: T
- options?: StrictOmit<AquaRadioButtonOptions, "tandem">
- & GroupItemOptions
Type AquaRadioButtonGroupOptions¶
- radioButtonOptions?: StrictOmit<AquaRadioButtonOptions, "soundPlayer" | "tandem">
options propagated to AquaRadioButton instances - touchAreaXDilation?: number
Dilation of pointer areas for each radio button. X dilation is ignored for orientation === 'horizontal'. Y dilation is ignored for orientation === 'vertical'. - touchAreaYDilation?: number
- mouseAreaXDilation?: number
- mouseAreaYDilation?: number
- & StrictOmit<TrimmedParentOptions, "children">
Source Code¶
See the source for AquaRadioButtonGroup.ts in the sun repository.