Skip to content

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

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.