123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- package vuetify
- import (
- "context"
- "fmt"
- h "github.com/theplant/htmlgo"
- )
- type VCalendarWeeklyBuilder struct {
- tag *h.HTMLTagBuilder
- }
- func VCalendarWeekly(children ...h.HTMLComponent) (r *VCalendarWeeklyBuilder) {
- r = &VCalendarWeeklyBuilder{
- tag: h.Tag("v-calendar-weekly").Children(children...),
- }
- return
- }
- func (b *VCalendarWeeklyBuilder) Color(v string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr("color", v)
- return b
- }
- func (b *VCalendarWeeklyBuilder) Dark(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":dark", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) DayFormat(v interface{}) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":day-format", h.JSONString(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) End(v int) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":end", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) HideHeader(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":hide-header", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) Light(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":light", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) Locale(v string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr("locale", v)
- return b
- }
- func (b *VCalendarWeeklyBuilder) LocaleFirstDayOfYear(v string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr("locale-first-day-of-year", v)
- return b
- }
- func (b *VCalendarWeeklyBuilder) MinWeeks(v interface{}) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":min-weeks", h.JSONString(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) MonthFormat(v interface{}) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":month-format", h.JSONString(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) Now(v string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr("now", v)
- return b
- }
- func (b *VCalendarWeeklyBuilder) ShortMonths(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":short-months", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) ShortWeekdays(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":short-weekdays", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) ShowMonthOnFirst(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":show-month-on-first", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) ShowWeek(v bool) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":show-week", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) Start(v int) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":start", fmt.Sprint(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) WeekdayFormat(v interface{}) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(":weekday-format", h.JSONString(v))
- return b
- }
- func (b *VCalendarWeeklyBuilder) Weekdays(v string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr("weekdays", v)
- return b
- }
- func (b *VCalendarWeeklyBuilder) SetAttr(k string, v interface{}) {
- b.tag.SetAttr(k, v)
- }
- func (b *VCalendarWeeklyBuilder) Attr(vs ...interface{}) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(vs...)
- return b
- }
- func (b *VCalendarWeeklyBuilder) Children(children ...h.HTMLComponent) (r *VCalendarWeeklyBuilder) {
- b.tag.Children(children...)
- return b
- }
- func (b *VCalendarWeeklyBuilder) AppendChildren(children ...h.HTMLComponent) (r *VCalendarWeeklyBuilder) {
- b.tag.AppendChildren(children...)
- return b
- }
- func (b *VCalendarWeeklyBuilder) PrependChildren(children ...h.HTMLComponent) (r *VCalendarWeeklyBuilder) {
- b.tag.PrependChildren(children...)
- return b
- }
- func (b *VCalendarWeeklyBuilder) Class(names ...string) (r *VCalendarWeeklyBuilder) {
- b.tag.Class(names...)
- return b
- }
- func (b *VCalendarWeeklyBuilder) ClassIf(name string, add bool) (r *VCalendarWeeklyBuilder) {
- b.tag.ClassIf(name, add)
- return b
- }
- func (b *VCalendarWeeklyBuilder) On(name string, value string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(fmt.Sprintf("v-on:%s", name), value)
- return b
- }
- func (b *VCalendarWeeklyBuilder) Bind(name string, value string) (r *VCalendarWeeklyBuilder) {
- b.tag.Attr(fmt.Sprintf("v-bind:%s", name), value)
- return b
- }
- func (b *VCalendarWeeklyBuilder) MarshalHTML(ctx context.Context) (r []byte, err error) {
- return b.tag.MarshalHTML(ctx)
- }
|