src_aurelia-bodylight-plugin/src/elements/value-boolean.js
import {bindable} from "aurelia-templating";
import {Value} from "./value";
export class ValueBoolean extends Value {
@bindable valuetrue=""; //text to be displayed when true
@bindable valuefalse=""; //text to be displayed when false
constructor(...rest) {
super(...rest);
}
updateValue(rawvalue) {
this.value = rawvalue;
if (this.dataevent) {
let c = new CustomEvent('fmivalue', {detail: {value: this.value}});
this.element.dispatchEvent(c);
}
}
}