New to Kendo UI for Angular? Start a free 30-day trial
SliderTickTitleCallback
Sets the title for the ticks (see example). By default, each tick uses its Slider value as the title. If you use a callback function, it receives the component value and returns a string for the title.
typescript
@Component({
selector: "my-app",
template: `
<kendo-slider [title]="title"></kendo-slider>
`,
})
export class AppComponent {
// Use a callback function to capture the 'this' execution context of the class.
public title = (value: number): string => {
return `${this.numbers[value]}`;
};
}