forked from MapComplete/MapComplete
		
	Use OSM-settings to keep track of the chosen license; change tree marker to circle (fix #24)
This commit is contained in:
		
							parent
							
								
									b2704d0ab8
								
							
						
					
					
						commit
						b1775d8184
					
				
					 15 changed files with 83 additions and 57 deletions
				
			
		
							
								
								
									
										23
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										23
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -2,16 +2,25 @@ import {Geocoding} from "./Logic/Geocoding"; | |||
| import {SearchAndGo} from "./UI/SearchAndGo"; | ||||
| import {TextField} from "./UI/Base/TextField"; | ||||
| import {VariableUiElement} from "./UI/Base/VariableUIElement"; | ||||
| import {DropDownUI} from "./UI/Base/DropDownUI"; | ||||
| import {UIEventSource} from "./UI/UIEventSource"; | ||||
| 
 | ||||
| console.log("HI"); | ||||
| 
 | ||||
|  new SearchAndGo().AttachTo("maindiv"); | ||||
| /*const tf = new TextField(); | ||||
| tf.AttachTo("maindiv"); | ||||
| tf.enterPressed.addCallback(() => {alert("Searching")}); | ||||
| new VariableUiElement(tf.value).AttachTo("extradiv"); | ||||
| /*/ | ||||
| 
 | ||||
| var control = new UIEventSource<string>("b"); | ||||
| control.addCallback((data) => { | ||||
|     console.log("> GOT", control.data) | ||||
| }) | ||||
| 
 | ||||
| new DropDownUI("Test", | ||||
|     [{value: "a", shown: "a"}, | ||||
|         {value: "b", shown: "b"}, | ||||
|         {value: "c", shown: "c"}, | ||||
|     ], control | ||||
| ).AttachTo("maindiv"); | ||||
| 
 | ||||
| 
 | ||||
| new VariableUiElement(control).AttachTo("extradiv"); | ||||
| 
 | ||||
| //*/
 | ||||
| window.setTimeout(() => {control.setData("a")}, 1000); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue