Exports method to create a slider_ab element group.
- Source
Methods
(inner) numericChecks(value, params) → {Boolean}
The numericChecks method checks whether a provided numeric value is a number, larger than params.min, and smaller than params.max.
The slider_ab numericCheck methods returns false if the 'a' slider element value exceeds the 'b' slider element value or vice versa.
Name | Type | Description |
---|---|---|
value | Object | The numeric value to check. |
params | Object | The config object argument. |
Name | Type | Description |
---|---|---|
params.min | numeric | Value must be larger than min. |
params.max | numeric | Value must be smaller than max. |
params.data_id | string | The id of the numeric input element. |
- Source
true if checks are passed.
- Type:
- Boolean
(inner) onRangeInput(e, params)
Assign value from range type input to associated numericInput element.
Formatting and numeric checks will be handled by the numericInput element.
Name | Type | Description |
---|---|---|
e | Object | oninput event from range type input. |
params | Object | params object used to pass additional params to the numericInput input function. |
(inner) slider_ab(params) → {HTMLElement}
The slider method creates a range slider element with two numeric input elements [a/b].
The params.value property must be between params.min and params.max params.
Name | Type | Description |
---|---|---|
params | Object | Parameter for slider element. |
Name | Type | Description |
---|---|---|
params.val_a | numeric | Parameter value for a input. |
params.val_b | numeric | Parameter value for b input. |
params.min | numeric | Numeric range min. |
params.max | numeric | Numeric range max. |
- Source
Element group containing range and numeric input elements.
- Type:
- HTMLElement