123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VSystemBarBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VSystemBar(children ...h.HTMLComponent) (r *VSystemBarBuilder) {
- r = &VSystemBarBuilder{
- tag: h.Tag("v-system-bar").Children(children...),
- }
- return
- }
- func (b *VSystemBarBuilder) Absolute(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":absolute", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) App(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":app", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) Color(v string) (r *VSystemBarBuilder) {
- b.tag.Attr("color", v)
- return b
- }
- func (b *VSystemBarBuilder) Dark(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":dark", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) Fixed(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":fixed", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) Height(v int) (r *VSystemBarBuilder) {
- b.tag.Attr(":height", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) Light(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":light", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) LightsOut(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":lights-out", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) Window(v bool) (r *VSystemBarBuilder) {
- b.tag.Attr(":window", fmt.Sprint(v))
- return b
- }
- func (b *VSystemBarBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VSystemBarBuilder) Attr(vs ...interface{}) (r *VSystemBarBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VSystemBarBuilder) Children(children ...h.HTMLComponent) (r *VSystemBarBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VSystemBarBuilder) AppendChildren(children ...h.HTMLComponent) (r *VSystemBarBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VSystemBarBuilder) PrependChildren(children ...h.HTMLComponent) (r *VSystemBarBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VSystemBarBuilder) Class(names ...string) (r *VSystemBarBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VSystemBarBuilder) ClassIf(name string, add bool) (r *VSystemBarBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VSystemBarBuilder) On(name string, value string) (r *VSystemBarBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VSystemBarBuilder) Bind(name string, value string) (r *VSystemBarBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VSystemBarBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|