-
Notifications
You must be signed in to change notification settings - Fork 5
/
stepper-window-item.go
97 lines (77 loc) · 2.56 KB
/
stepper-window-item.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
package vuetify
import (
"context"
"fmt"
h "github.com/theplant/htmlgo"
)
type VStepperWindowItemBuilder struct {
tag *h.HTMLTagBuilder
}
func VStepperWindowItem(children ...h.HTMLComponent) (r *VStepperWindowItemBuilder) {
r = &VStepperWindowItemBuilder{
tag: h.Tag("v-stepper-window-item").Children(children...),
}
return
}
func (b *VStepperWindowItemBuilder) ReverseTransition(v interface{}) (r *VStepperWindowItemBuilder) {
b.tag.Attr(":reverse-transition", h.JSONString(v))
return b
}
func (b *VStepperWindowItemBuilder) Transition(v interface{}) (r *VStepperWindowItemBuilder) {
b.tag.Attr(":transition", h.JSONString(v))
return b
}
func (b *VStepperWindowItemBuilder) Value(v interface{}) (r *VStepperWindowItemBuilder) {
b.tag.Attr(":value", h.JSONString(v))
return b
}
func (b *VStepperWindowItemBuilder) Disabled(v bool) (r *VStepperWindowItemBuilder) {
b.tag.Attr(":disabled", fmt.Sprint(v))
return b
}
func (b *VStepperWindowItemBuilder) SelectedClass(v string) (r *VStepperWindowItemBuilder) {
b.tag.Attr("selected-class", v)
return b
}
func (b *VStepperWindowItemBuilder) Eager(v bool) (r *VStepperWindowItemBuilder) {
b.tag.Attr(":eager", fmt.Sprint(v))
return b
}
func (b *VStepperWindowItemBuilder) SetAttr(k string, v interface{}) {
b.tag.SetAttr(k, v)
}
func (b *VStepperWindowItemBuilder) Attr(vs ...interface{}) (r *VStepperWindowItemBuilder) {
b.tag.Attr(vs...)
return b
}
func (b *VStepperWindowItemBuilder) Children(children ...h.HTMLComponent) (r *VStepperWindowItemBuilder) {
b.tag.Children(children...)
return b
}
func (b *VStepperWindowItemBuilder) AppendChildren(children ...h.HTMLComponent) (r *VStepperWindowItemBuilder) {
b.tag.AppendChildren(children...)
return b
}
func (b *VStepperWindowItemBuilder) PrependChildren(children ...h.HTMLComponent) (r *VStepperWindowItemBuilder) {
b.tag.PrependChildren(children...)
return b
}
func (b *VStepperWindowItemBuilder) Class(names ...string) (r *VStepperWindowItemBuilder) {
b.tag.Class(names...)
return b
}
func (b *VStepperWindowItemBuilder) ClassIf(name string, add bool) (r *VStepperWindowItemBuilder) {
b.tag.ClassIf(name, add)
return b
}
func (b *VStepperWindowItemBuilder) On(name string, value string) (r *VStepperWindowItemBuilder) {
b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
return b
}
func (b *VStepperWindowItemBuilder) Bind(name string, value string) (r *VStepperWindowItemBuilder) {
b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
return b
}
func (b *VStepperWindowItemBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
return b.tag.MarshalHTML(ctx)
}