Skip to content

BooleanRoundToggleButton

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.