Skip to content

BooleanRectangularToggleButton

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.