mapcomplete/test.ts

8 lines
312 B
TypeScript
Raw Normal View History

2020-09-25 12:44:04 +02:00
import ValidatedTextField from "./UI/Input/ValidatedTextField";
import {VariableUiElement} from "./UI/Base/VariableUIElement";
2020-09-25 12:44:04 +02:00
const vtf= ValidatedTextField.KeyInput(true);
vtf.AttachTo('maindiv')
vtf.GetValue().addCallback(console.log)
new VariableUiElement(vtf.GetValue().map(n => ""+n)).AttachTo("extradiv")