aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
32 lines • 1.34 kB
JavaScript
import * as tslib_1 from "tslib";
import * as au from "../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;
}());
export { MdCollectionSelector };
//# sourceMappingURL=md-collection-selector.js.map