UNPKG

aurelia-materialize-bridge

Version:
34 lines 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var au = require("../aurelia"); 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