forked from MapComplete/MapComplete
		
	Last fixes to the OH picker
This commit is contained in:
		
							parent
							
								
									64ec06bfc8
								
							
						
					
					
						commit
						48f66bd17e
					
				
					 11 changed files with 327 additions and 311 deletions
				
			
		
							
								
								
									
										12
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -8,6 +8,7 @@ import OpeningHoursPickerTable from "./UI/OpeningHours/OpeningHoursPickerTable"; | |||
| import OpeningHoursPicker from "./UI/OpeningHours/OpeningHoursPicker"; | ||||
| import {OH, OpeningHour} from "./UI/OpeningHours/OpeningHours"; | ||||
| import {VariableUiElement} from "./UI/Base/VariableUIElement"; | ||||
| import PublicHolidayInput from "./UI/OpeningHours/PublicHolidayInput"; | ||||
| 
 | ||||
| 
 | ||||
| const tagsSource = new UIEventSource({ | ||||
|  | @ -23,15 +24,8 @@ const tagsSource = new UIEventSource({ | |||
| const state = new State(undefined) | ||||
| State.state = state | ||||
| 
 | ||||
| const ohData = new UIEventSource<OpeningHour[]>([{ | ||||
|     weekday: 1, | ||||
|     startHour: 10, | ||||
|     startMinutes: 0 | ||||
|     , endHour: 12, | ||||
|     endMinutes: 0 | ||||
| }]) | ||||
| new OpeningHoursPicker(ohData).AttachTo("maindiv") | ||||
| new VariableUiElement(ohData.map(OH.ToString)).AttachTo("extradiv") | ||||
| const ohData = new UIEventSource<string>("") | ||||
| new OpeningHoursPicker().AttachTo("maindiv") | ||||
| /* | ||||
| const allSpecials = SpecialVisualizations.specialVisualizations.map(spec => { | ||||
|     try{ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue