mapcomplete/test.ts

10 lines
391 B
TypeScript
Raw Normal View History

2021-06-16 17:09:32 +02:00
import ValidatedTextField from "./UI/Input/ValidatedTextField";
2021-06-14 19:21:33 +02:00
import Combine from "./UI/Base/Combine";
2021-06-16 14:23:53 +02:00
import {VariableUiElement} from "./UI/Base/VariableUIElement";
2021-06-14 17:28:11 +02:00
2021-06-16 17:09:32 +02:00
new Combine(ValidatedTextField.tpList.map(tp => {
const tf = ValidatedTextField.InputForType(tp.name);
return new Combine([tf, new VariableUiElement(tf.GetValue()).SetClass("alert")]);
})).AttachTo("maindiv")