Checkbox example

This commit is contained in:
Pieter Vander Vennet 2020-07-20 13:37:33 +02:00
parent 4abe74fbf1
commit dc0da41fb1
2 changed files with 11 additions and 6 deletions

View file

@ -3,15 +3,17 @@ 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 "";
return "Current val: "+this.data.data;
}
}