forked from MapComplete/MapComplete
Butchering the UI framework
This commit is contained in:
parent
8d404b1ba9
commit
6415e195d1
90 changed files with 1012 additions and 3101 deletions
16
test.ts
16
test.ts
|
@ -1,3 +1,15 @@
|
|||
import ValidatedTextField from "./UI/Input/ValidatedTextField";
|
||||
import {Translation} from "./UI/i18n/Translation";
|
||||
import Locale from "./UI/i18n/Locale";
|
||||
import Combine from "./UI/Base/Combine";
|
||||
|
||||
ValidatedTextField.InputForType("phone").AttachTo("maindiv")
|
||||
|
||||
new Combine(["Some language:",new Translation({en:"English",nl:"Nederlands",fr:"Françcais"})]).AttachTo("maindiv")
|
||||
|
||||
Locale.language.setData("nl")
|
||||
window.setTimeout(() => {
|
||||
Locale.language.setData("en")
|
||||
}, 1000)
|
||||
|
||||
window.setTimeout(() => {
|
||||
Locale.language.setData("fr")
|
||||
}, 5000)
|
Loading…
Add table
Add a link
Reference in a new issue