EnableDisable the Slider in EJ 1 Angular Slider

14 Aug 20181 minute to read

Slider widget includes an option to enable/disable it. When you disable the Slider, it is displayed in a blur state and you cannot perform any operations in it.


Using this enabled property you can enable/disable the Slider. Data type of this property is “boolean”.

Also you can enable/disable the Slider by using enable and disable methods.

The following steps explains you on how to disable the Slider.

  • html
  • <div class="txt">Default Slider</div>
       <ej-slider id="enale" [value]="value" width="500" [enabled]="enabled"></ej-slider>
  • html
  • <script>
     import { Component } from '@angular/core';
      selector: 'ej-app',
      templateUrl: './slider.component.html'
    export class SliderComponent { 
        public enabled: boolean = false;
        public value: number = 60;
        constructor() {

    Execute the above code example to render the following output.