123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VDataFooterBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VDataFooter(children ...h.HTMLComponent) (r *VDataFooterBuilder) {
- r = &VDataFooterBuilder{
- tag: h.Tag("v-data-footer").Children(children...),
- }
- return
- }
- func (b *VDataFooterBuilder) DisableItemsPerPage(v bool) (r *VDataFooterBuilder) {
- b.tag.Attr(":disable-items-per-page", fmt.Sprint(v))
- return b
- }
- func (b *VDataFooterBuilder) DisablePagination(v bool) (r *VDataFooterBuilder) {
- b.tag.Attr(":disable-pagination", fmt.Sprint(v))
- return b
- }
- func (b *VDataFooterBuilder) FirstIcon(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("first-icon", v)
- return b
- }
- func (b *VDataFooterBuilder) ItemsPerPageAllText(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("items-per-page-all-text", v)
- return b
- }
- func (b *VDataFooterBuilder) ItemsPerPageOptions(v interface{}) (r *VDataFooterBuilder) {
- b.tag.Attr(":items-per-page-options", h.JSONString(v))
- return b
- }
- func (b *VDataFooterBuilder) ItemsPerPageText(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("items-per-page-text", v)
- return b
- }
- func (b *VDataFooterBuilder) LastIcon(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("last-icon", v)
- return b
- }
- func (b *VDataFooterBuilder) NextIcon(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("next-icon", v)
- return b
- }
- func (b *VDataFooterBuilder) Options(v interface{}) (r *VDataFooterBuilder) {
- b.tag.Attr(":options", h.JSONString(v))
- return b
- }
- func (b *VDataFooterBuilder) PageText(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("page-text", v)
- return b
- }
- func (b *VDataFooterBuilder) Pagination(v interface{}) (r *VDataFooterBuilder) {
- b.tag.Attr(":pagination", h.JSONString(v))
- return b
- }
- func (b *VDataFooterBuilder) PrevIcon(v string) (r *VDataFooterBuilder) {
- b.tag.Attr("prev-icon", v)
- return b
- }
- func (b *VDataFooterBuilder) ShowCurrentPage(v bool) (r *VDataFooterBuilder) {
- b.tag.Attr(":show-current-page", fmt.Sprint(v))
- return b
- }
- func (b *VDataFooterBuilder) ShowFirstLastPage(v bool) (r *VDataFooterBuilder) {
- b.tag.Attr(":show-first-last-page", fmt.Sprint(v))
- return b
- }
- func (b *VDataFooterBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VDataFooterBuilder) Attr(vs ...interface{}) (r *VDataFooterBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VDataFooterBuilder) Children(children ...h.HTMLComponent) (r *VDataFooterBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VDataFooterBuilder) AppendChildren(children ...h.HTMLComponent) (r *VDataFooterBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VDataFooterBuilder) PrependChildren(children ...h.HTMLComponent) (r *VDataFooterBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VDataFooterBuilder) Class(names ...string) (r *VDataFooterBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VDataFooterBuilder) ClassIf(name string, add bool) (r *VDataFooterBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VDataFooterBuilder) On(name string, value string) (r *VDataFooterBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VDataFooterBuilder) Bind(name string, value string) (r *VDataFooterBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VDataFooterBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|