mapcomplete/UI/Base/CheckBox.ts
Pieter Vander Vennet dc0da41fb1 Checkbox example
2020-07-20 13:37:33 +02:00

19 lines
No EOL
383 B
TypeScript

import {UIElement} from "../UIElement";
import {UIEventSource} from "../UIEventSource";
export class CheckBox extends UIElement{
private data: UIEventSource<boolean>;
constructor(data: UIEventSource<boolean>) {
super(data);
this.data = data;
}
protected InnerRender(): string {
return "Current val: "+this.data.data;
}
}