BooleanToggleNode¶
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/BooleanToggleNode.ts for the most up-to-date information.
Overview¶
Shows one node if the property is true or another node if the property is false. Used to indicate boolean state. This is a convenience API for true/false nodes, see SelectedNode for the general case.
@author Sam Reid (PhET Interactive Simulations) @author Chris Malley (PixelZoom, Inc.)
Class BooleanToggleNode¶
Constructor¶
new BooleanToggleNode( booleanProperty : TReadOnlyProperty<boolean>, trueNode : Node, falseNode : Node, providedOptions? : BooleanToggleNodeOptions )¶
Instance Methods¶
Type BooleanToggleNodeOptions¶
Source Code¶
See the source for BooleanToggleNode.ts in the sun repository.