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 |
- Source
Extends
Members
(static) defaultOptions :InputOptions
Type:
- InputOptions
- Source
(static) events :InputEvents
Type:
- InputEvents
- Source
value
Return the value of the input
- Source
value
Set the value of the input
- Source
Methods
(static) from(definition) → {Input}
Parameters:
Name | Type | Description |
---|---|---|
definition | Object | Input definition |
- Source
Returns:
- Type:
- Input
click()
Action to execute on click
- Source
Type Definitions
InputEvents
Type:
Properties- Object
Name | Type | Description |
---|---|---|
change | String | Input value has changed |
- Source
InputOptions
Type:
Properties- Object
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 |
- Source