Edit this page

tooltip Object

Configuration of the Slider tooltip.

tooltip.enabled Boolean(default: true)

Disables (false) or enables (true) the tooltip of the Slider.

tooltip.format String(default: "{0:#,#.##}")

Format string for the text of the tooltip. Note: The applied format will also influence the appearance of the Slider tick labels.

The slider widget supports precision of up-to 10 digits after the decimals point.

Example - set format according to the precision

<input id="slider" style="width: 300px" />
    precision: 4,
    value: 0.0002,
    tooltip: {
      format: "{0:#,#.####}"

tooltip.template String |Function

Template of the tooltip. The following variables are passed by the Slider and are ready to be used inside the template:

  • value - the current value when using a regular slider
  • selectionStart and selectionEnd - the current values when using a range slider

Example - using RangeSlider template

<div id="rangeslider" class="humidity">
  <input />
  <input />

  // the following template definitions are identical and represent the default RangeSlider template

  var templateString = "#= selectionStart # - #= selectionEnd #";
  // or
  // var templateString = "# return selectionStart  + ' - ' + selectionEnd #";

    min: 0,
    max: 100,
    tooltip: {
      template: kendo.template(templateString)
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article