forked from MapComplete/MapComplete
Fix popups and core functionality
This commit is contained in:
parent
9cc721abad
commit
8ad9b816ac
13 changed files with 116 additions and 144 deletions
28
test.ts
28
test.ts
|
@ -1,3 +1,27 @@
|
|||
import TestAll from "./test/TestAll";
|
||||
import {RadioButton} from "./UI/Input/RadioButton";
|
||||
import {FixedInputElement} from "./UI/Input/FixedInputElement";
|
||||
import {SubstitutedTranslation} from "./UI/SubstitutedTranslation";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {Translation} from "./UI/i18n/Translation";
|
||||
import TagRenderingAnswer from "./UI/Popup/TagRenderingAnswer";
|
||||
import TagRenderingConfig from "./Customizations/JSON/TagRenderingConfig";
|
||||
import EditableTagRendering from "./UI/Popup/EditableTagRendering";
|
||||
|
||||
new TestAll().testAll();
|
||||
|
||||
const tagsSource = new UIEventSource({
|
||||
id:'id',
|
||||
name:'name',
|
||||
surface:'asphalt'
|
||||
})
|
||||
|
||||
const config = new TagRenderingConfig({
|
||||
render: "Rendering {name} {id} {surface}"
|
||||
}, null, "test")
|
||||
|
||||
new EditableTagRendering(
|
||||
tagsSource,
|
||||
config
|
||||
).AttachTo("extradiv")
|
||||
|
||||
|
||||
window.v = tagsSource
|
Loading…
Add table
Add a link
Reference in a new issue