mapcomplete/test.ts

17 lines
678 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-01 02:12:33 +02:00
2020-07-15 13:15:36 +02:00
const html = new UIEventSource<string>("Some text");
const uielement = new VariableUiElement(html);
uielement.AttachTo("maindiv")
window.setTimeout(() => {html.setData("Different text")}, 1000)