blob: 6fb4f240328a591da544f42903bae6c98f8a6d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { ElemType } from "../screenbuilder.ts";
import { Screen } from "../screen.ts";
import * as client from "../client.ts"
export default {
elements: [
{
type: ElemType.TextElem,
id: 'home',
data: ["Username: \n"]
},
{
type: ElemType.InputElem,
id: 'msg-input',
data: [false, false]
},
{
type: ElemType.ButtonElem,
id: 'done-btn',
data: ["Send", async function (this: Screen) {
}]
}
],
focus: "msg-input",
name: 'home'
}
|