aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
43 lines • 1.77 kB
JavaScript
define(["require", "exports", "tslib", "../aurelia"], function (require, exports, tslib_1, au) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MdPushpin = /** @class */ (function () {
function MdPushpin(element) {
this.element = element;
}
MdPushpin.prototype.attached = function () {
var _this = this;
var options = {
bottom: this.bottom,
offset: this.offset,
top: this.top,
onPositionChange: function (position) { return au.fireMaterializeEvent(_this.element, "position-change", { position: position }); }
};
au.cleanOptions(options);
this.instance = new M.Pushpin(this.element, options);
};
MdPushpin.prototype.detached = function () {
this.instance.destroy();
};
tslib_1.__decorate([
au.ato.bindable.numberMd,
tslib_1.__metadata("design:type", Number)
], MdPushpin.prototype, "bottom", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd,
tslib_1.__metadata("design:type", Number)
], MdPushpin.prototype, "offset", void 0);
tslib_1.__decorate([
au.ato.bindable.numberMd,
tslib_1.__metadata("design:type", Number)
], MdPushpin.prototype, "top", void 0);
MdPushpin = tslib_1.__decorate([
au.customAttribute("md-pushpin"),
au.autoinject,
tslib_1.__metadata("design:paramtypes", [Element])
], MdPushpin);
return MdPushpin;
}());
exports.MdPushpin = MdPushpin;
});
//# sourceMappingURL=pushpin.js.map