Search results

ColorRangeData API in JavaScript (ES5) Slider API control

It illustrates the color track data in slider.

  <div id="default"></div>
  import { Slider } from "@syncfusion/ej2-inputs";

  let defaultObj: Slider = new Slider({
    value: 30,
    colorRange:[{color:"green", start:10, end: 45}]
  });
  defaultObj.appendTo("#default");

Properties

color

string

It is used to set the color in the slider bar.

Defaults to

end

number

It is used to get the end value for applying color.

Defaults to null

start

number

It is used to get the starting value for applying color.

Defaults to null