Skip to content

MomentaryButtonModel

Overview

Model for a momentary button: on when pressed, off when released.

@author Chris Malley (PixelZoom, Inc.)

Class MomentaryButtonModel

import { MomentaryButtonModel } from 'scenerystack/sun';

Constructor

new MomentaryButtonModel( valueOff : T, valueOn : T, valueProperty : TProperty<T>, providedOptions? : MomentaryButtonModelOptions )

Instance Methods

dispose()

Instance Properties

valueOn : T

(readonly)

Type MomentaryButtonModelOptions

import type { MomentaryButtonModelOptions } from 'scenerystack/sun';

ButtonModelOptions

Source Code

See the source for MomentaryButtonModel.ts in the sun repository.