module:Input

Abstract Input class

Constructor

(abstract) new module:Input(positionDefinition, base, optionsopt)

Input constructor

Parameters:
NameTypeAttributesDescription
positionDefinitionPositionDefinition

Any position

baseComponent

Base shape for the background

optionsInputOptions<optional>

Specific options

Extends

Members

(static) defaultOptions :InputOptions

Type:
  • InputOptions

(static) events :InputEvents

Type:
  • InputEvents

value

Return the value of the input

value

Set the value of the input

Methods

(static) from(definition) → {Input}

Parameters:
NameTypeDescription
definitionObject

Input definition

Returns:
Type: 
Input

click()

Action to execute on click

Type Definitions

InputEvents

Type:
  • Object
Properties
NameTypeDescription
changeString

Input value has changed

InputOptions

Type:
  • Object
Properties
NameTypeAttributesDefaultDescription
value*<optional>
null

Initial value of the input

foregroundString<optional>
"#444"

Color of the filling

fillString<optional>
"#f6f6f6"

Color of the background

borderString<optional>
"#aaa"

Color of the border

hoverString<optional>
"#d0d0d0"

Color of the background when hovered

cursorString<optional>
Component.cursors.pointer

Cursor on hover