mapcomplete/test.ts

21 lines
740 B
TypeScript
Raw Normal View History

import {UIEventSource} from "./UI/UIEventSource";
2020-07-05 18:59:47 +02:00
import {Changes} from "./Logic/Changes";
import {OsmConnection} from "./Logic/OsmConnection";
import {ElementStorage} from "./Logic/ElementStorage";
import {WikipediaLink} from "./Customizations/Questions/WikipediaLink";
import {OsmLink} from "./Customizations/Questions/OsmLink";
2020-07-08 11:23:36 +02:00
import {ConfirmDialog} from "./UI/ConfirmDialog";
2020-07-08 15:09:34 +02:00
import {Imgur} from "./Logic/Imgur";
2020-07-15 13:15:36 +02:00
import {VariableUiElement} from "./UI/Base/VariableUIElement";
2020-07-20 13:37:33 +02:00
import {CheckBox} from "./UI/Base/CheckBox";
2020-07-01 02:12:33 +02:00
2020-07-15 13:15:36 +02:00
2020-07-20 13:37:33 +02:00
const eventSource = new UIEventSource(false);
eventSource.addCallback(console.log)
2020-07-15 13:15:36 +02:00
2020-07-20 13:37:33 +02:00
new CheckBox(eventSource)
.onClick(() => {
eventSource.setData(!eventSource.data);
})
.AttachTo("maindiv");