Skip to content

StringProperty

Overview

StringProperty is a Property whose value is a string.

@author Sam Reid (PhET Interactive Simulations) @author Chris Malley (PixelZoom, Inc.)

Class StringProperty

import { StringProperty } from 'scenerystack/axon';

Constructor

new StringProperty( value : string, providedOptions? : StringPropertyOptions )

Instance Methods

Type StringPropertyOptions

import type { StringPropertyOptions } from 'scenerystack/axon';

StrictOmit<PropertyOptions<string>, "valueType" | "phetioValueType">

Source Code

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