Skip to content

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

import { AquaRadioButtonGroup } from 'scenerystack/sun';

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

import type { AquaRadioButtonGroupItem } from 'scenerystack/sun';

Type AquaRadioButtonGroupOptions

import type { AquaRadioButtonGroupOptions } from 'scenerystack/sun';
  • 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.