Skip to content

BooleanRectangularToggleButton

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/BooleanRectangularToggleButton.ts for the most up-to-date information.

Overview

This toggle button uses a boolean Property and a trueNode and falseNode to display its content.

@author John Blanco (PhET Interactive Simulations)

Class BooleanRectangularToggleButton

import { BooleanRectangularToggleButton } from 'scenerystack/sun';

Constructor

new BooleanRectangularToggleButton( booleanProperty : Property<boolean>, trueNode : Node, falseNode : Node, providedOptions? : BooleanRectangularToggleButtonOptions )

Instance Methods

dispose()

Type BooleanRectangularToggleButtonOptions

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

StrictOmit<RectangularToggleButtonOptions, "content">

Source Code

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