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.

Platform  
html
   â”‚    Support  
Chromium supported
Firefox supported
Safari supported
Edge supported
Since  2.0.0
   â”‚   
Olivier Bossel
Olivier Bossel
   â”‚   
beta

  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

  1. name
    String

    Specify the name to assign to the internal input[type="range"]

  2. value
    Number

    Specify the initial range value

  3. values
    Object

    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

  4. min
    0
    Number

    Specify the minimal value or the range

  5. max
    100
    Number

    Specify the maximal value of the range

  6. step
    Number

    Specify the steps between each values

  7. target
    String

    Specify a css selector of any HTMLElement or HTMLInputElement in which to inject the value when the range is updated

  8. tooltip
    false
    Boolean

    Specify if you want to display the value inside a tooltip on top of the thumb

  9. disabled
    false
    Boolean

    Specify if this range is disabled

Bugs
are not our friends...

Don't hesitate to declare an issue if something does not works as expected.

Declare my issue on Github Talk about it on Discord

The more we are,
the stronger we become.

Don't hesitate to tell some words to you friends about us. The goal is to became more and more each days to help each others...

Support us on Patreon! Share on Facebook! Make a tweet!

The more we are,
the stronger we become.

Don't be afraid to join us on Discord.

Join us on discord!

We love,
Open source!

All of our codebase can be found on Github. We hope that you may contribute to help us make our tools even better!

Discover our codebase!

Welcome on