aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
46 lines • 1.75 kB
JavaScript
import * as tslib_1 from "tslib";
import * as au from "../aurelia";
var MdRange = /** @class */ (function () {
function MdRange(element) {
this.element = element;
this.readonly = false;
this.min = 0;
this.max = 100;
this.step = 1;
this.value = 0;
}
MdRange.prototype.attached = function () {
this.instance = new M.Range(this.input);
};
MdRange.prototype.detached = function () {
this.instance.destroy();
};
tslib_1.__decorate([
au.ato.bindable.booleanMd,
tslib_1.__metadata("design:type", Boolean)
], MdRange.prototype, "readonly", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }),
tslib_1.__metadata("design:type", Number)
], MdRange.prototype, "min", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }),
tslib_1.__metadata("design:type", Number)
], MdRange.prototype, "max", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }),
tslib_1.__metadata("design:type", Number)
], MdRange.prototype, "step", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }),
tslib_1.__metadata("design:type", Number)
], MdRange.prototype, "value", void 0);
MdRange = tslib_1.__decorate([
au.customElement("md-range"),
au.autoinject,
tslib_1.__metadata("design:paramtypes", [Element])
], MdRange);
return MdRange;
}());
export { MdRange };
//# sourceMappingURL=range.js.map