search

Class myphysicslab.lab.controls.ButtonControl

Provided By
All Implemented Interfaces

Creates and manages an HTML button control; executes a function when the button is pressed. Displays an image if provided, otherwise the text name is displayed. The image is assigned classname icon for CSS scripting.

new ButtonControl( label, clickFunction, opt_image )

Parameters
labelstring

name of the button

clickFunctionfunction(): ?

the function to execute when button is clicked

opt_image(Node|undefined)

the image to show in the button; if undefined then the name is displayed as text.

Instance Methods

Instance Properties