module:Button

Button class
button demo

Constructor

new module:Button(positionDefinition, optionsopt)

Button constructor

Parameters:
NameTypeAttributesDescription
positionDefinitionPositionDefinition

Position of the top-left corner

optionsButtonOptions<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

value

Change this button's text

width

Get this button's width

Type Definitions

ButtonOptions

Type:
  • Object
Properties
NameTypeAttributesDefaultDescription
valueString<optional>
""

Text of the button