Skip to content

MoveToTrashButton

Under Construction

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

Overview

MoveToTrashButton is a push button whose icon means 'move to trash'. The arrow can be color-coded to the thing being deleted by setting options.arrowColor.

@author Sam Reid (PhET Interactive Simulations) @author Jonathan Olson <jonathan.olson@colorado.edu>

Class MoveToTrashButton

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

Constructor

new MoveToTrashButton( providedOptions? : MoveToTrashButtonOptions )

Instance Methods

Type MoveToTrashButtonOptions

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

Source Code

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