Constructor
new InputItemWrapper(queryData, index)
Create InputItemWrapper.
Parameters:
| Name | Type | Description |
|---|---|---|
queryData |
QueryDataBlock | An instance of QueryData. |
index |
number | Order index of the input item in a query. |
- Source:
Methods
createErrorTag() → {InputItemWrapper}
Creates Input Error Message DOM.
- Source:
Returns:
- This instance.
- Type
- InputItemWrapper
createInput() → {InputItemWrapper}
Creates InputItem and assigns it into this InputItemWrapper.
- Source:
Returns:
- This instance.
- Type
- InputItemWrapper
createLabel() → {InputItemWrapper}
Creates DOM label for this InputItemWrapper.
- Source:
Returns:
- This instance.
- Type
- InputItemWrapper
setValid(overwriteGraphicsToopt) → {OptionItem}
Displays validation state using the errorTag, setting or unsetting classnames for them to by styllable.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
overwriteGraphicsTo |
boolean |
<optional> |
If set to true, the InputItemWrapper will be force-set to valid. |
- Source:
Returns:
- This instance.
- Type
- OptionItem
validate() → {Object|false}
Validates this InputItemWrapper, requests InputItem validation.
- Source:
Returns:
- Data validation summary from the assigned InputItem {valid:boolean, data:inputData, inputWrapper:this, inputItem:InputItem} or false if none assigned.
- Type
- Object | false