-
Notifications
You must be signed in to change notification settings - Fork 5
/
footer.go
127 lines (101 loc) · 2.77 KB
/
footer.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package vuetify
import (
"context"
"fmt"
h "github.com/theplant/htmlgo"
)
type VFooterBuilder struct {
tag *h.HTMLTagBuilder
}
func VFooter(children ...h.HTMLComponent) (r *VFooterBuilder) {
r = &VFooterBuilder{
tag: h.Tag("v-footer").Children(children...),
}
return
}
func (b *VFooterBuilder) App(v bool) (r *VFooterBuilder) {
b.tag.Attr(":app", fmt.Sprint(v))
return b
}
func (b *VFooterBuilder) Color(v string) (r *VFooterBuilder) {
b.tag.Attr("color", v)
return b
}
func (b *VFooterBuilder) Height(v interface{}) (r *VFooterBuilder) {
b.tag.Attr(":height", h.JSONString(v))
return b
}
func (b *VFooterBuilder) Border(v interface{}) (r *VFooterBuilder) {
b.tag.Attr(":border", h.JSONString(v))
return b
}
func (b *VFooterBuilder) Elevation(v interface{}) (r *VFooterBuilder) {
b.tag.Attr(":elevation", h.JSONString(v))
return b
}
func (b *VFooterBuilder) Name(v string) (r *VFooterBuilder) {
b.tag.Attr("name", v)
return b
}
func (b *VFooterBuilder) Order(v interface{}) (r *VFooterBuilder) {
b.tag.Attr(":order", h.JSONString(v))
return b
}
func (b *VFooterBuilder) Absolute(v bool) (r *VFooterBuilder) {
b.tag.Attr(":absolute", fmt.Sprint(v))
return b
}
func (b *VFooterBuilder) Rounded(v interface{}) (r *VFooterBuilder) {
b.tag.Attr(":rounded", h.JSONString(v))
return b
}
func (b *VFooterBuilder) Tile(v bool) (r *VFooterBuilder) {
b.tag.Attr(":tile", fmt.Sprint(v))
return b
}
func (b *VFooterBuilder) Tag(v string) (r *VFooterBuilder) {
b.tag.Attr("tag", v)
return b
}
func (b *VFooterBuilder) Theme(v string) (r *VFooterBuilder) {
b.tag.Attr("theme", v)
return b
}
func (b *VFooterBuilder) SetAttr(k string, v interface{}) {
b.tag.SetAttr(k, v)
}
func (b *VFooterBuilder) Attr(vs ...interface{}) (r *VFooterBuilder) {
b.tag.Attr(vs...)
return b
}
func (b *VFooterBuilder) Children(children ...h.HTMLComponent) (r *VFooterBuilder) {
b.tag.Children(children...)
return b
}
func (b *VFooterBuilder) AppendChildren(children ...h.HTMLComponent) (r *VFooterBuilder) {
b.tag.AppendChildren(children...)
return b
}
func (b *VFooterBuilder) PrependChildren(children ...h.HTMLComponent) (r *VFooterBuilder) {
b.tag.PrependChildren(children...)
return b
}
func (b *VFooterBuilder) Class(names ...string) (r *VFooterBuilder) {
b.tag.Class(names...)
return b
}
func (b *VFooterBuilder) ClassIf(name string, add bool) (r *VFooterBuilder) {
b.tag.ClassIf(name, add)
return b
}
func (b *VFooterBuilder) On(name string, value string) (r *VFooterBuilder) {
b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
return b
}
func (b *VFooterBuilder) Bind(name string, value string) (r *VFooterBuilder) {
b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
return b
}
func (b *VFooterBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
return b.tag.MarshalHTML(ctx)
}