aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
20 lines (15 loc) • 466 B
text/typescript
import * as au from "../aurelia";
.customElement("md-collection-selector")
.autoinject
export class MdCollectionSelector {
constructor(private element: Element) { }
.bindable
item: any;
.ato.bindable.booleanMd
mdDisabled: boolean = false;
.ato.bindable.booleanMd
isSelected: boolean = false;
isSelectedChanged(newValue) {
au.fireMaterializeEvent(this.element, "selection-changed", { item: this.item, isSelected: this.isSelected });
}
}