define(["require", "exports", "@syncfusion/ej2-inputs", "./base-module"], function (require, exports, ej2_inputs_1, base_module_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Slider = (function () {
function Slider(parent) {
this.compObj = undefined;
this.parent = parent;
this.parent.sliderModule = this;
this.base = new base_module_1.Base(this.parent, this);
}
Slider.prototype.render = function (e) {
this.compObj = new ej2_inputs_1.Slider(this.parent.model);
this.compObj.appendTo(e.target);
};
Slider.prototype.focus = function () {
this.compObj.element.focus();
};
Slider.prototype.updateValue = function (e) {
if (this.compObj && e.type === 'Slider') {
this.parent.setProperties({ value: this.compObj.value }, true);
this.parent.extendModelValue(this.compObj.value);
}
};
Slider.prototype.refresh = function () {
this.compObj.refresh();
};
Slider.prototype.destroy = function () {
this.base.destroy();
};
Slider.prototype.getModuleName = function () {
return 'slider';
};
return Slider;
}());
exports.Slider = Slider;
});
|