module:Button

module:Button

Button class
button demo

Constructor

# new module:Button(positionDefinition, optionsopt)

Button constructor

Parameters:
Name Type Attributes Description
positionDefinition PositionDefinition

Position of the top-left corner

options ButtonOptions <optional>

Specific options

Extends

Members

# (static) defaultOptions :ButtonOptions

Type:
  • ButtonOptions

# (static) MARGIN :Number

Margin around the text

Type:
  • Number

# height

Get this button's height

# size

Computer button size

# value

Return this button's text

Overrides:

# value

Change this button's text

Overrides:

# width

Get this button's width

Type Definitions

# ButtonOptions

Type:
  • Object
Properties
Name Type Attributes Default Description
value String <optional>
""

Text of the button