Skip to content

TextPushButton

Overview

TextPushButton is a convenience class for creating a rectangular push button with a text label.

@author John Blanco (PhET Interactive Simulations)

Class TextPushButton

import { TextPushButton } from 'scenerystack/sun';

Constructor

new TextPushButton( string : string | TReadOnlyProperty<string>, providedOptions? : TextPushButtonOptions )

Instance Methods

dispose()

Type TextPushButtonOptions

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

Source Code

See the source for TextPushButton.ts in the sun repository.