Checkbox example
This commit is contained in:
parent
4abe74fbf1
commit
dc0da41fb1
2 changed files with 11 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue