module:Input

module:Input

Abstract Input class

Constructor

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

Input constructor

Parameters:
Name Type Attributes Description
positionDefinition PositionDefinition

Any position

base Component

Base shape for the background

options InputOptions <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:
Name Type Description
definition Object

Input definition

Returns:
Type
Input

# click()

Action to execute on click

Type Definitions

# InputEvents

Type:
  • Object
Properties
Name Type Description
change String

Input value has changed

# InputOptions

Type:
  • Object
Properties
Name Type Attributes Default Description
value * <optional>
null

Initial value of the input

foreground String <optional>
"#444"

Color of the filling

fill String <optional>
"#f6f6f6"

Color of the background

border String <optional>
"#aaa"

Color of the border

hover String <optional>
"#d0d0d0"

Color of the background when hovered

cursor String <optional>
Component.cursors.pointer

Cursor on hover