123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VListGroupBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VListGroup(children ...h.HTMLComponent) (r *VListGroupBuilder) {
- r = &VListGroupBuilder{
- tag: h.Tag("v-list-group").Children(children...),
- }
- return
- }
- func (b *VListGroupBuilder) ActiveClass(v string) (r *VListGroupBuilder) {
- b.tag.Attr("active-class", v)
- return b
- }
- func (b *VListGroupBuilder) AppendIcon(v string) (r *VListGroupBuilder) {
- b.tag.Attr("append-icon", v)
- return b
- }
- func (b *VListGroupBuilder) Color(v string) (r *VListGroupBuilder) {
- b.tag.Attr("color", v)
- return b
- }
- func (b *VListGroupBuilder) Disabled(v bool) (r *VListGroupBuilder) {
- b.tag.Attr(":disabled", fmt.Sprint(v))
- return b
- }
- func (b *VListGroupBuilder) Eager(v bool) (r *VListGroupBuilder) {
- b.tag.Attr(":eager", fmt.Sprint(v))
- return b
- }
- func (b *VListGroupBuilder) Group(v string) (r *VListGroupBuilder) {
- b.tag.Attr("group", v)
- return b
- }
- func (b *VListGroupBuilder) NoAction(v bool) (r *VListGroupBuilder) {
- b.tag.Attr(":no-action", fmt.Sprint(v))
- return b
- }
- func (b *VListGroupBuilder) PrependIcon(v string) (r *VListGroupBuilder) {
- b.tag.Attr("prepend-icon", v)
- return b
- }
- func (b *VListGroupBuilder) Ripple(v interface{}) (r *VListGroupBuilder) {
- b.tag.Attr(":ripple", h.JSONString(v))
- return b
- }
- func (b *VListGroupBuilder) SubGroup(v bool) (r *VListGroupBuilder) {
- b.tag.Attr(":sub-group", fmt.Sprint(v))
- return b
- }
- func (b *VListGroupBuilder) Value(v interface{}) (r *VListGroupBuilder) {
- b.tag.Attr(":value", h.JSONString(v))
- return b
- }
- func (b *VListGroupBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VListGroupBuilder) Attr(vs ...interface{}) (r *VListGroupBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VListGroupBuilder) Children(children ...h.HTMLComponent) (r *VListGroupBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VListGroupBuilder) AppendChildren(children ...h.HTMLComponent) (r *VListGroupBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VListGroupBuilder) PrependChildren(children ...h.HTMLComponent) (r *VListGroupBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VListGroupBuilder) Class(names ...string) (r *VListGroupBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VListGroupBuilder) ClassIf(name string, add bool) (r *VListGroupBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VListGroupBuilder) On(name string, value string) (r *VListGroupBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VListGroupBuilder) Bind(name string, value string) (r *VListGroupBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VListGroupBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|