-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
33 lines (31 loc) · 802 Bytes
/
index.ts
File metadata and controls
33 lines (31 loc) · 802 Bytes
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
28
29
30
31
32
33
import * as UI from "./JavascriptUI"
class MyView implements UI.View {
body = UI.Body(function() {
UI.Text("Direction")
.font(UI.Font.title)
.margin(25)
UI.Group(function() {
UI.Text("Row")
.font(UI.Font.title)
UI.HStack(function() {
UI.Text("Left")
UI.Divider()
UI.Text("Right")
})
})
.margin(50)
UI.Divider()
UI.Group(function() {
UI.Text("Column")
.font(UI.Font.title)
UI.VStack(function() {
UI.Text("Top")
UI.Divider()
UI.Text("Bottom")
})
})
.margin(50)
UI.Spacer()
})
}
new MyView()