aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
34 lines • 1.59 kB
JavaScript
define(["require", "exports", "tslib", "../aurelia"], function (require, exports, tslib_1, au) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MdCollectionSelector = /** @class */ (function () {
function MdCollectionSelector(element) {
this.element = element;
this.mdDisabled = false;
this.isSelected = false;
}
MdCollectionSelector.prototype.isSelectedChanged = function (newValue) {
au.fireMaterializeEvent(this.element, "selection-changed", { item: this.item, isSelected: this.isSelected });
};
tslib_1.__decorate([
au.bindable,
tslib_1.__metadata("design:type", Object)
], MdCollectionSelector.prototype, "item", void 0);
tslib_1.__decorate([
au.ato.bindable.booleanMd,
tslib_1.__metadata("design:type", Boolean)
], MdCollectionSelector.prototype, "mdDisabled", void 0);
tslib_1.__decorate([
au.ato.bindable.booleanMd,
tslib_1.__metadata("design:type", Boolean)
], MdCollectionSelector.prototype, "isSelected", void 0);
MdCollectionSelector = tslib_1.__decorate([
au.customElement("md-collection-selector"),
au.autoinject,
tslib_1.__metadata("design:paramtypes", [Element])
], MdCollectionSelector);
return MdCollectionSelector;
}());
exports.MdCollectionSelector = MdCollectionSelector;
});
//# sourceMappingURL=md-collection-selector.js.map