Constructor
new InputControl(config)
Construct the input control. For more details on the configuration options, see input text type.
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
Properties
|
- Source:
Extends
- module:hcje/domTools.BaseControl
Methods
constrainToRegex(regex, lastValidInput, currentInput) → {string}
Regex constraint. This tests the current input against a regular expression and returns the current input if the test passes or the lastValidInput if it fails.
Parameters:
| Name | Type | Description |
|---|---|---|
regex |
RegExp | Regex to test input against. |
lastValidInput |
string | Last valid input. |
currentInput |
string | Current input. |
- Source:
Returns:
- Type
- string
getValue() → {string}
Get current value as string.
- Source:
Returns:
- Type
- string
Type Definitions
onChangeCallback(value)
Callback function for a InputControl.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | Current value |
- Source: