RectangularPushButton¶
Overview¶
RectangularPushButton is a rectangular push button, used to initiate some action.
@author John Blanco (PhET Interactive Simulations)
Class RectangularPushButton¶
Constructor¶
new RectangularPushButton( providedOptions? : RectangularPushButtonOptions )¶
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)
RectangularButton has this.buttonModel, but we also need this.pushButtonModel, because it has additional methods
Type RectangularPushButtonOptions¶
- soundPlayer?: TSoundPlayer
- & RectangularButtonOptions & PushButtonModelOptions
Source Code¶
See the source for RectangularPushButton.ts in the sun repository.