UNPKG

@nwebui/react-niagara-px

Version:
19 lines 714 B
import Converter from "./Converter"; export default class IBooleanToSimple extends Converter { constructor(nativeConverter) { super(nativeConverter); } convert(widget, target) { if (!target.isComplex()) { console.warn("IBooleanToSimple for non complex not implemented"); return; } const converter = this.nativeConverter; const v = target.get("out", "value").value; const name = converter.name(); const trueValue = converter.get("trueValue"); const falseValue = converter.get("falseValue"); widget.set(name, v ? trueValue : falseValue); } } //# sourceMappingURL=IBooleanToSimple.js.map