Class: TextButton

TextButton(options)

A generic text button.

Constructor

new TextButton(options)

Create a text button control.
Parameters:
Name Type Description
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

draw()

Draw this control.
Source:

erase()

Erase this control.
Source:

initialize(parentElement, width, height)

Initialize this control with the specified parameters.
Parameters:
Name Type Description
parentElement element The parent element.
width number The width.
height number The height.
Source:

setOption(name, value)

Set the value for the specified option if it exists in this control.
Parameters:
Name Type Description
name string The name of the option.
value string The value to set for the option.
Source:

setOptions(options)

Set all options for this control. Note that this method completely replaces all existing options with the specified options.
Parameters:
Name Type Description
options Object The options to replace existing options.
Source: