EnabledProperty¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/axon/blob/main/js/EnabledProperty.ts for the most up-to-date information.
Overview¶
Property to control if something is enabled. This serves as a consistent class to control enabled. It also factors out PhET-iO instrumentation. Likely you should use it in cases like so:
const enabledProperty = new BooleanProperty( true, { tandem: options.tandem.createTandem( 'enabledProperty' ), phetioFeatured: true } );
@author Michael Kauzmann (PhET Interactive Simulations)
Class EnabledProperty¶
Constructor¶
new EnabledProperty( initialEnabled : boolean, providedOptions? : EnabledPropertyOptions )¶
Instance Methods¶
Type EnabledPropertyOptions¶
- checkTandemName?: boolean
- & BooleanPropertyOptions
Source Code¶
See the source for EnabledProperty.ts in the axon repository.