Exports method to create a slider element group.

Methods

(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.

Parameters:
NameTypeDescription
eObject

oninput event from range type input.

paramsObject

params object used to pass additional params to the numericInput input function.

(inner) slider(params) → {HTMLElement}

The slider method creates a numeric input element nested in a group with an associated range slider element.

The params.value property must be between params.min and params.max params.

Parameters:
NameTypeDescription
paramsObject

Parameter for slider element.

Properties
NameTypeDescription
params.valuenumeric

Parameter value.

params.minnumeric

Numeric range min.

params.maxnumeric

Numeric range max.

Returns:

Element group containing range and numeric input elements.

Type: 
HTMLElement