forked from MapComplete/MapComplete
First steps for a decent custom theme generator
This commit is contained in:
parent
a57b7d93fa
commit
2052976909
82 changed files with 1880 additions and 1311 deletions
9
test.ts
9
test.ts
|
@ -0,0 +1,9 @@
|
|||
import TagInput from "./UI/Input/TagInput";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
||||
import {MultiTagInput} from "./UI/Input/MultiTagInput";
|
||||
|
||||
const input = new MultiTagInput(new UIEventSource<string[]>(["key~value|0"]));
|
||||
input.GetValue().addCallback(console.log);
|
||||
input.AttachTo("maindiv");
|
||||
new VariableUiElement(input.GetValue().map(tags => tags.join(" & "))).AttachTo("extradiv")
|
Loading…
Add table
Add a link
Reference in a new issue