forked from MapComplete/MapComplete
More work on opening hours
This commit is contained in:
parent
9970c4b8bb
commit
d1f286f466
11 changed files with 855 additions and 229 deletions
10
test.ts
10
test.ts
|
@ -1,8 +1,11 @@
|
|||
/*
|
||||
//*
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
||||
import OpeningHoursPicker from "./UI/Input/OpeningHoursPicker";
|
||||
import OpeningHoursRange from "./UI/Input/OpeningHours/OpeningHoursRange";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import OpeningHoursPicker from "./UI/Input/OpeningHours/OpeningHoursPicker";
|
||||
import {OpeningHour} from "./Logic/OpeningHours";
|
||||
|
||||
let oh = new OpeningHoursPicker();
|
||||
let oh = new OpeningHoursPicker(new UIEventSource<OpeningHour[]>([]));
|
||||
oh.SetStyle("height:100vh;display:block;").AttachTo('maindiv');
|
||||
|
||||
oh.GetValue().addCallback(data => console.log(data))
|
||||
|
@ -15,6 +18,7 @@ new VariableUiElement(oh.GetValue().map(oh => {
|
|||
oh.weekdayEnd + " " + oh.endHour + ":" + oh.endMinutes
|
||||
})).AttachTo("extradiv");
|
||||
|
||||
|
||||
/*/
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue