Configures the ticks data of the Slider.
string
It is used to customize the Slider scale value to the desired format using Internationalization or events(custom formatting).
<ejs-slider id='default' [value]='value' [ticks]="ticksData"></ejs-slider>
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: 'app/template.html',
styleUrls:['index.css'],
})
export class AppComponent {
public value: number = 30;
public ticksData: Object =
{
placement: 'After',
format: 'C2',
largeStep: 20,
smallStep: 10,
showSmallTicks: true
};
}
number
It is used to denote the distance between two major (large) ticks from the scale of the Slider.
<ejs-slider id='default' [value]='value' [ticks]="ticks"></ejs-slider>
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: 'app/template.html',
styleUrls:['index.css'],
})
export class AppComponent {
public value: number = 30;
public ticks: Object = {
largeStep: 20,placement: 'After',
};
}
Defaults to 10
It is used to denote the position of the ticks in the Slider. The available options are:
<ejs-slider id='default' [value]='value' [ticks]="ticks"></ejs-slider>
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: 'app/template.html',
styleUrls:['index.css'],
})
export class AppComponent {
public value: number = 30;
public ticks: Object = {
placement: 'Before'
};
}
Defaults to ‘None’
boolean
We can show or hide the small ticks in the Slider, which will be appeared in between the largeTicks.
Defaults to false
number
It is used to denote the distance between two minor (small) ticks from the scale of the Slider.
<ejs-slider id='default' [value]='value' [ticks]="ticks"></ejs-slider>
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: 'app/template.html',
styleUrls:['index.css'],
})
export class AppComponent {
public value: number = 30;
public ticks: Object = {
placement: 'After',
smallStep: 5
};
}
Defaults to 1