ipsos-components
Version:
Material Design components for Angular
33 lines (30 loc) • 794 B
text/typescript
import {Component, ViewEncapsulation} from '@angular/core';
/**
* @title Configurable slider
*/
export class SliderConfigurableExample {
autoTicks = false;
disabled = false;
invert = false;
max = 100;
min = 0;
showTicks = false;
step = 1;
thumbLabel = false;
value = 0;
vertical = false;
get tickInterval(): number | 'auto' {
return this.showTicks ? (this.autoTicks ? 'auto' : this._tickInterval) : 0;
}
set tickInterval(v) {
this._tickInterval = Number(v);
}
private _tickInterval = 1;
}