Skip to content

BooleanRoundToggleButton

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/BooleanRoundToggleButton.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 Sam Reid

Class BooleanRoundToggleButton

import { BooleanRoundToggleButton } from 'scenerystack/sun';

Constructor

new BooleanRoundToggleButton( booleanProperty : Property<boolean>, trueNode : Node, falseNode : Node, providedOptions? : BooleanRoundToggleButtonOptions )

Instance Methods

dispose()

Type BooleanRoundToggleButtonOptions

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

StrictOmit<RoundToggleButtonOptions, "content">

Source Code

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