MapComplete/test.ts

24 lines
1,016 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 15:54:50 +02:00
import {TextField} from "./UI/Input/TextField";
import {FixedInputElement} from "./UI/Input/FixedInputElement";
import {RadioButton} from "./UI/Input/RadioButton";
2020-07-20 21:39:07 +02:00
import {DropDown} from "./UI/Input/DropDown";
import {FixedUiElement} from "./UI/Base/FixedUiElement";
2020-07-01 02:12:33 +02:00
2020-07-20 21:39:07 +02:00
const dropdown = new RadioButton<string>(
[new FixedInputElement("5","5"),
new TextField({
toString: ((str) => str),
fromString: ((str) => str),
})]
2020-07-20 13:28:45 +02:00
).AttachTo("maindiv");
2020-07-20 21:39:07 +02:00
const value = dropdown.GetValue();
value.setData("asldkjvmqlksjdf")