-
Notifications
You must be signed in to change notification settings - Fork 0
/
resizablebottompanel.go
75 lines (72 loc) · 3.11 KB
/
resizablebottompanel.go
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package drawer
import app "github.com/maxence-charriere/go-app/v9/pkg/app"
type ResizableBottomPanel struct {
app.Compo
}
func (c *ResizableBottomPanel) Render() app.UI {
return app.Div().
Class("pf-c-drawer pf-m-expanded pf-m-panel-bottom").
Body(
app.Div().
Class("pf-c-drawer__main").
Body(
app.Div().
Class("pf-c-drawer__content").
Body(
app.Div().
Class("pf-c-drawer__body").
Body(
app.Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate."), app.Br(),
app.Br(),
app.Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat, nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate."),
),
),
app.Div().
Class("pf-c-drawer__panel pf-m-resizable").
Body(
app.Div().
Class("pf-c-drawer__splitter").
Aria("role", "separator").
TabIndex(0).
Aria("orientation", "horizontal").
Body(
app.Div().
Class("pf-c-drawer__splitter-handle"),
),
app.Div().
Class("pf-c-drawer__panel-main").
Body(
app.Div().
Class("pf-c-drawer__body").
Body(
app.Div().
Class("pf-c-drawer__head").
Body(
app.Span().
Body(
app.Text("drawer-panel"),
),
app.Div().
Class("pf-c-drawer__actions").
Body(
app.Div().
Class("pf-c-drawer__close").
Body(
app.Button().
Class("pf-c-button pf-m-plain").
Type("button").
Aria("label", "Close drawer panel").
Body(
app.I().
Class("fas fa-times").
Aria("hidden", true),
),
),
),
),
),
),
),
),
)
}