TextPushButton¶
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/TextPushButton.ts for the most up-to-date information.
Overview¶
TextPushButton is a convenience class for creating a rectangular push button with a text label.
@author John Blanco (PhET Interactive Simulations)
Class TextPushButton¶
Constructor¶
new TextPushButton( string : string | TReadOnlyProperty<string>, providedOptions? : TextPushButtonOptions )¶
Instance Methods¶
dispose()¶
Type TextPushButtonOptions¶
- font?: Font
- textFill?: TPaint
- maxTextWidth?: number | null
- textNodeOptions?: TextOptions
- & StrictOmit<RectangularPushButtonOptions, "content">
Source Code¶
See the source for TextPushButton.ts in the sun repository.