BooleanProperty¶
Overview¶
Property whose value must be true or false. Truthy/falsy values are invalid.
@author Sam Reid (PhET Interactive Simulations) @author Chris Malley (PixelZoom, Inc.)
Class BooleanProperty¶
Constructor¶
new BooleanProperty( value : boolean, providedOptions? : BooleanPropertyOptions )¶
Instance Methods¶
toggle()¶
Type BooleanPropertyOptions¶
client cannot specify superclass options that are controlled by BooleanProperty
StrictOmit<PropertyOptions<boolean>, "isValidValue" | "valueType" | "phetioValueType">
Source Code¶
See the source for BooleanProperty.ts in the axon repository.