Class: Button

Button(options)

A button renders a button with text to an internal canvas. The width will scale to fit the text.

Constructor

new Button(options)

Parameters:
Name Type Description
options Object possible keys include:
Properties
Name Type Description
text string the text to display on the button
height number the height of the button
Source: