forked from MapComplete/MapComplete
Merge latest master
This commit is contained in:
commit
63b4fe0ee1
24 changed files with 324 additions and 171 deletions
19
UI/Base/CheckBox.ts
Normal file
19
UI/Base/CheckBox.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue