123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VSkeletonLoaderBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VSkeletonLoader(children ...h.HTMLComponent) (r *VSkeletonLoaderBuilder) {
- r = &VSkeletonLoaderBuilder{
- tag: h.Tag("v-skeleton-loader").Children(children...),
- }
- return
- }
- func (b *VSkeletonLoaderBuilder) Boilerplate(v bool) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":boilerplate", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Dark(v bool) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":dark", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Elevation(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":elevation", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Height(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":height", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Light(v bool) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":light", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Loading(v bool) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":loading", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) MaxHeight(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":max-height", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) MaxWidth(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":max-width", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) MinHeight(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":min-height", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) MinWidth(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":min-width", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Tile(v bool) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":tile", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Transition(v string) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr("transition", v)
- return b
- }
- func (b *VSkeletonLoaderBuilder) Type(v string) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr("type", v)
- return b
- }
- func (b *VSkeletonLoaderBuilder) Types(v interface{}) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":types", h.JSONString(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) Width(v int) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(":width", fmt.Sprint(v))
- return b
- }
- func (b *VSkeletonLoaderBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VSkeletonLoaderBuilder) Attr(vs ...interface{}) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VSkeletonLoaderBuilder) Children(children ...h.HTMLComponent) (r *VSkeletonLoaderBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VSkeletonLoaderBuilder) AppendChildren(children ...h.HTMLComponent) (r *VSkeletonLoaderBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VSkeletonLoaderBuilder) PrependChildren(children ...h.HTMLComponent) (r *VSkeletonLoaderBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VSkeletonLoaderBuilder) Class(names ...string) (r *VSkeletonLoaderBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VSkeletonLoaderBuilder) ClassIf(name string, add bool) (r *VSkeletonLoaderBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VSkeletonLoaderBuilder) On(name string, value string) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VSkeletonLoaderBuilder) Bind(name string, value string) (r *VSkeletonLoaderBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VSkeletonLoaderBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|