Skip to content

ExpandCollapseButton

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/sun/blob/main/js/ExpandCollapseButton.ts for the most up-to-date information.

Overview

Button for expanding/collapsing something.

@author Chris Malley (PixelZoom, Inc.) @author Jesse Greenberg (PhET Interactive Simulations)

Class ExpandCollapseButton

import { ExpandCollapseButton } from 'scenerystack/sun';

Constructor

new ExpandCollapseButton( expandedProperty : Property<boolean>, providedOptions? : ExpandCollapseButtonOptions )

Instance Methods

dispose()

Type ExpandCollapseButtonOptions

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

Source Code

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