123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VParallaxBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VParallax(children ...h.HTMLComponent) (r *VParallaxBuilder) {
- r = &VParallaxBuilder{
- tag: h.Tag("v-parallax").Children(children...),
- }
- return
- }
- func (b *VParallaxBuilder) Alt(v string) (r *VParallaxBuilder) {
- b.tag.Attr("alt", v)
- return b
- }
- func (b *VParallaxBuilder) Height(v string) (r *VParallaxBuilder) {
- b.tag.Attr("height", v)
- return b
- }
- func (b *VParallaxBuilder) Src(v string) (r *VParallaxBuilder) {
- b.tag.Attr("src", v)
- return b
- }
- func (b *VParallaxBuilder) Srcset(v string) (r *VParallaxBuilder) {
- b.tag.Attr("srcset", v)
- return b
- }
- func (b *VParallaxBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VParallaxBuilder) Attr(vs ...interface{}) (r *VParallaxBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VParallaxBuilder) Children(children ...h.HTMLComponent) (r *VParallaxBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VParallaxBuilder) AppendChildren(children ...h.HTMLComponent) (r *VParallaxBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VParallaxBuilder) PrependChildren(children ...h.HTMLComponent) (r *VParallaxBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VParallaxBuilder) Class(names ...string) (r *VParallaxBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VParallaxBuilder) ClassIf(name string, add bool) (r *VParallaxBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VParallaxBuilder) On(name string, value string) (r *VParallaxBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VParallaxBuilder) Bind(name string, value string) (r *VParallaxBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VParallaxBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|