Skip to content

StringUnionProperty

Overview

In TypeScript, it is common to use a string literal union as an enumeration. This type automatically specifies validValues and the phetioType for convenience.

@author Sam Reid (PhET Interactive Simulations)

Class StringUnionProperty

import { StringUnionProperty } from 'scenerystack/axon';

Constructor

new StringUnionProperty( value : T, providedOptions : StringEnumerationPropertyOptions<T> )

Instance Methods

Source Code

See the source for StringUnionProperty.ts in the axon repository.