New to Kendo UI for AngularStart a free 30-day trial

Definition

Package:@progress/kendo-angular-inputs

Selector:kendo-slider

Export Name:Accessible in templates as #kendoSliderInstance="kendoSlider"

Syntax:

html
<kendo-slider [min]="0" [max]="10" [smallStep]="1" [(ngModel)]="value"></kendo-slider>

Inputs

animate

boolean

Determines if the component animates when the value changes. The component does not animate during initial rendering.

Default:

true

Sets the title of the Decrease button of the Slider (see example).

disabled

boolean

When true, disables the Slider. To disable the component in reactive forms, see Forms Support see example.

Default:

false

Changes the title attribute of the drag handle. Use this property to localize the drag handle title.

Sets the width between two ticks along the track, in pixels. If you do not set fixedTickWidth, the Slider adjusts the tick width automatically see example.

Sets the title of the Increase button of the Slider (see example).

largeStep

number

Sets every nth tick as large and shows a label for it see example.

Default:

null

max

number

Sets the maximum value of the Slider. Accepts integers and floating-point numbers see example.

Default:

10

min

number

Sets the minimum value of the Slider. Accepts integers and floating-point numbers see example.

Default:

0

readonly

boolean

When true, sets the Slider to read-only see example.

Default:

false

Shows or hides the arrow side buttons of the Slider (see example). When you set showButtons to false, the component does not display the buttons.

Default:

true

smallStep

number

Sets the step value of the Slider. Accepts only positive values. Can be an integer or a floating-point number see example.

Default:

1

tabindex

number

Sets the tabindex of the Slider.

Default:

0

Sets the location of the tick marks in the Slider see example.

The options are:

  • before – Shows tick marks above a horizontal track or left of a vertical track.
  • after – Shows tick marks below a horizontal track or right of a vertical track.
  • both – Shows tick marks on both sides of the track.
  • none – Hides tick marks and removes them from the DOM.
Default:

'both'

Sets the title for the ticks. The default title for each tick is its Slider value. If you use a callback function, the function receives the component value and returns a string for the new title see example.

Default:

identity

value

number

Sets the current value of the Slider when it first appears. Use either ngModel or the value binding, but not both at the same time.

vertical

boolean

When true. renders a vertical Slider see example.

Default:

false

Events

Fires when the component is blurred.

Fires when the user focuses the component.

Fires when the user selects a new value.

Methods

Blurs the Slider.

Focuses the Slider.