Skip to content

LockNode

Overview

LockNode shows a padlock that is either open or closed, depending on the state of a boolean Property.

@author Chris Malley (PixelZoom, Inc.)

Class LockNode

import { LockNode } from 'scenerystack/scenery-phet';

Constructor

new LockNode( isLockedProperty : TProperty<boolean>, providedOptions? : LockNodeOptions )

Instance Methods

Type LockNodeOptions

import type { LockNodeOptions } from 'scenerystack/scenery-phet';

BooleanToggleNodeOptions

Source Code

See the source for LockNode.ts in the scenery-phet repository.