Skip to content

EyeToggleButton

Overview

Button that toggles between an open and closed eyeball, used to control the visibility of something.

@author Chris Malley (PixelZoom, Inc.)

Class EyeToggleButton

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

Constructor

new EyeToggleButton( eyeOpenProperty : Property<boolean>, providedOptions? : EyeToggleButtonOptions )

Instance Methods

dispose()

Type EyeToggleButtonOptions

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

StrictOmit<RectangularToggleButtonOptions, "content">

Source Code

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