forked from MapComplete/MapComplete
Remove priority
This commit is contained in:
parent
72416deff4
commit
0ceeaf82b2
2 changed files with 29 additions and 8 deletions
23
test.ts
23
test.ts
|
@ -1,15 +1,32 @@
|
|||
//*
|
||||
|
||||
|
||||
|
||||
import OpeningHoursPickerTable from "./UI/Input/OpeningHours/OpeningHoursPickerTable";
|
||||
import {UIElement} from "./UI/UIElement";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {OpeningHour} from "./Logic/OpeningHours";
|
||||
import {TagRendering} from "./UI/Popup/TagRendering";
|
||||
import {Tag} from "./Logic/Tags";
|
||||
|
||||
new OpeningHoursPickerTable(new UIEventSource<UIElement[]>([]), new UIEventSource<OpeningHour[]>([]))
|
||||
.AttachTo("maindiv")
|
||||
|
||||
const tr = new TagRendering(
|
||||
new UIEventSource<any>({
|
||||
id: "node/-1",
|
||||
amenity: "bench"
|
||||
}),
|
||||
{
|
||||
question: "Does this bench have a backrest?",
|
||||
mappings: [{
|
||||
k: new Tag("backrest", "yes"),
|
||||
txt: "Has backrest"
|
||||
},
|
||||
{
|
||||
k: new Tag("backrest", "no"),
|
||||
txt: "Has no backrest"
|
||||
}]
|
||||
}
|
||||
)
|
||||
tr.AttachTo("maindiv")
|
||||
|
||||
/*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue