Skip to content

MoveToTrashButton

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.