forked from MapComplete/MapComplete
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			No EOL
		
	
	
		
			383 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			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;
 | |
|     }
 | |
|     
 | |
| } |