SRangeComponent
This CustomElement make use of related resource(s).This component specify a range with some additional features than the native one like displaying the value automatically in tooltip or inline.
Preview
Simple range
Loading code example. Please wait...
With tooltip
Loading code example. Please wait...
With tooltip and colored
Loading code example. Please wait...
With steps
Loading code example. Please wait...
Disabled
Loading code example. Please wait...
External target input
Loading code example. Please wait...
Some colors
Loading code example. Please wait...
Features
-
All the built-in input type range features are supported
-
Can display a tooltip on top of the thumb to help user know what's the current value
-
Can have target(s) that will be automatically filled with the current value
-
Support for sugar theming system when activate default style
Import
Install
Interface
-
nameString
Specify the name to assign to the internal input[type="range"]
-
valueNumber
Specify the initial range value
-
valuesObject
Specify some values in array like ["hello","world"] that will be used for tooltip. Your range steps MUST be integers for this to work properly
-
min0Number
Specify the minimal value or the range
-
max100Number
Specify the maximal value of the range
-
stepNumber
Specify the steps between each values
-
targetString
Specify a css selector of any HTMLElement or HTMLInputElement in which to inject the value when the range is updated
-
tooltipfalseBoolean
Specify if you want to display the value inside a tooltip on top of the thumb
-
disabledfalseBoolean
Specify if this range is disabled