Variable Renderer

Renderer: {
    beforeRedraw(cal): void;
    cellAriaLabel(cal, y, m, day, monthofs, dayofweek): string;
    cellHTML(cal, y, m, day, monthofs): string;
    dayView(wgt, out, localizedSymbols): void;
    decadeView(wgt, out, localizedSymbols): void;
    disabled(cal, y, m, v, today): boolean;
    labelOfWeekOfYear(wgt, val): string;
    monthView(wgt, out, localizedSymbols): void;
    titleHTML(wgt, out, localizedSymbols): void;
    titleOfWeekOfYear(wgt): string;
    todayView(wgt, out, localizedSymbols): void;
    yearView(wgt, out, localizedSymbols): void;
} = ...

Type declaration

  • beforeRedraw:function
  • cellAriaLabel:function
    • Parameters

      • cal: zul.db.Calendar

        the calendar

      • y: number

        the year

      • m: number

        the month (between 0 to 11)

      • day: number

        the day (between 1 to 31)

      • monthofs: number

        the month offset. If the day is in the same month

      • dayofweek: number

        the day of the week (between 0 to 6)

      Returns string

      the label of a date cell. By overriding this method, you could customize the aria-label of a day cell.

      Default Value

      dd MMMM, yyyy
      

      Since

      9.5.0

  • cellHTML:function
    • Parameters

      • cal: zul.db.Calendar

        the calendar

      • y: number

        the year

      • m: number

        the month (between 0 to 11)

      • day: number

        the day (between 1 to 31)

      • monthofs: number

        the month offset. If the day is in the same month

      Returns string

      the HTML fragment representing a day cell. By overriding this method, you could customize the look of a day cell.

      Default Value

      day
      

      Since

      5.0.3

  • dayView:function
    • Renderer the dayView for this calendar

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      6.5.0

  • decadeView:function
    • Renderer the decadeView for this calendar

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      6.5.0

  • disabled:function
    • Tests if the specified date is disabled.

      Parameters

      • cal: zul.db.Calendar

        the calendar

      • y: number

        the year

      • m: number

        the month (between 0 to 11)

      • v: number

        the day (between 1 to 31)

      • today: DateImpl

        today

      Returns boolean

      Default Value

      it depends on the constraint, if any
      

      Since

      5.0.3

  • labelOfWeekOfYear:function
    • Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • val: number

        number of the week of the value

      Returns string

      the label of the week of year.

      Default Value

      the string of the value
      

      Since

      6.5.0

  • monthView:function
    • Renderer the monthView for this calendar

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      6.5.0

  • titleHTML:function
    • Generates the title of the content HTML.

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      6.5.3

  • titleOfWeekOfYear:function
    • Parameters

      Returns string

      the title of the week of year.

      Default Value

      'Wk'
      

      Since

      6.5.0

  • todayView:function
    • Renderer the today link for this calendar

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      8.0.0

  • yearView:function
    • Renderer the yearView for this calendar

      Parameters

      • wgt: zul.db.Calendar

        the calendar widget

      • out: string[]

        an array to output HTML fragments.

      • localizedSymbols: LocalizedSymbols

        the symbols for localization

      Returns void

      Since

      6.5.0