• Material
  • Fabric
  • Bootstrap
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Essential JS 2
HOME
All Controls

Button

This sample demonstrates the formatting of ticks and tooltip of Slider. Drag the thumb over the bar for selecting the formatted values between min and max.

DEMO
SOURCE

The format feature customize the units of Slider values to desired format. The formatted values will also be applied to the ARIA attributes of the slider

In this demo, Slider with currency, kilometer, and time formatting is demonstrated.

  • Currency Slider – In this sample, ticks and tooltip are formatted to currency using format API in both tooltip and ticks.
  • Kilometer Slider – In this sample, ticks and tooltip are formatted to kilometer using format API in both tooltip and ticks.
  • Time Slider – In this sample, ticks and tooltip are formatted to time using change event in tooltip and renderingTicks event in ticks

For more information, refer to the format section from the documentation.