RoundPushButton¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/sun/blob/main/js/buttons/RoundPushButton.ts for the most up-to-date information.
Overview¶
RoundPushButton is a round push button, used to initiate some action.
@author John Blanco (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations)
Class RoundPushButton¶
Constructor¶
new RoundPushButton( providedOptions? : RoundPushButtonOptions )¶
Instance Methods¶
dispose()¶
addListener( listener : PushButtonListener )¶
Adds a listener that will be notified when the button fires.
removeListener( listener : PushButtonListener )¶
Removes a listener.
Instance Properties¶
pushButtonModel : PushButtonModel¶
(protected, readonly)
RoundButton has this.buttonModel, but we also need this.pushButtonModel, because it has additional methods
Type RoundPushButtonOptions¶
- soundPlayer?: TSoundPlayer
- & RoundButtonOptions & PushButtonModelOptions
Source Code¶
See the source for RoundPushButton.ts in the sun repository.