# 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

  - beforeRedraw(cal): void

  - Called before zul.db.Calendar#redraw is invoked.

    #### Parameters

    - ##### cal: zul.db.Calendar

      the calendar

    #### Returns void

    #### Default Value

        does nothing

    #### Since

    5.0.3

- ##### cellAriaLabel:function

  - cellAriaLabel(cal, y, m, day, monthofs, dayofweek): string

  - #### 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

  - cellHTML(cal, y, m, day, monthofs): string

  - #### 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

  - dayView(wgt, out, localizedSymbols): void

  - 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

  - decadeView(wgt, out, localizedSymbols): void

  - 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

  - disabled(cal, y, m, v, today): boolean

  - 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

  - labelOfWeekOfYear(wgt, val): string

  - #### 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

  - monthView(wgt, out, localizedSymbols): void

  - 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

  - titleHTML(wgt, out, localizedSymbols): void

  - 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

  - titleOfWeekOfYear(wgt): string

  - #### Parameters

    - ##### wgt: zul.db.Calendar

      the calendar widget

    #### Returns string

    the title of the week of year.

    #### Default Value

        'Wk'

    #### Since

    6.5.0

- ##### todayView:function

  - todayView(wgt, out, localizedSymbols): void

  - 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

  - yearView(wgt, out, localizedSymbols): void

  - 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