v7.3.0

MonthView
Widget

This is normally used as a mode of a Calendar (as seen in the live demo below) but may be used standalone as a regular Widget.

In the example below, the MonthView may be resized vertically by dragging the splitter handle just below it.

When the height is changed by dragging the splitter, the view responsively adjusts the event height to show more or fewer events per cell. See responsiveEventHeight.

As a standalone widget, it will lack the capabilities of the Calendar class, such as keyboard-based event to event navigation and drag/drop features. As seen in this demo:

A Panel which displays a single month in a calendar like view.

Cell rendering can be customized using the dayCellRenderer method.

Event rendering can be customized using the eventRenderer method.

Useful configs

Config Description
eventHeight Height of event bars in pixels
showWeekNumber Show week number in day cells
dayCellRenderer Custom renderer for day cells
autoRowHeight Flex week rows or shrinkwrap events
hideNonWorkingDays Hide weekend/non-working day columns

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • The maximum number of events to show in a cell when the row is shrinkwrapped. Use this to keep rows to a sane size when using autoRowHeight, or the WeekExpander feature.

  • Configure as false to hide the week number shown at the top-left of each day cell

    Has a corresponding runtime showWeekNumber property.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • Returns the resource associated with this month view when used inside a ResourceView

  • Configure as false to hide the week number shown at the top-left of each day cell

    Has a corresponding showWeekNumber config.

  • isMonthView : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of MonthView class, or subclass thereof.

Functions

Functions are methods available for calling on the class

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    CSS variables

    CSS variables that can be set to adjust appearance
    Name Description
    --b-month-view-background Month view background
    --b-month-view-border-color Month view calendar cell border color
    --b-month-view-border-inline-width Week container border inline width
    --b-month-view-cell-border-width Month view calendar cell border width
    --b-month-view-cell-color Text color in day cells
    --b-month-view-cell-header-background Cell header background color
    --b-month-view-cell-header-color Cell header color
    --b-month-view-cell-header-content-height Cell header content height
    --b-month-view-cell-header-day-num-font-size Cell header date height
    --b-month-view-cell-header-dayname-height Cell header day name height
    --b-month-view-cell-header-padding Cell header padding
    --b-month-view-cell-header-week-color Cell header week number color
    --b-month-view-cell-other-month-color Text color in day cells for days not in current month
    --b-month-view-cell-weekend-color Text color in day cells for weekends
    --b-month-view-event-bar-font-size Event bar font size
    --b-month-view-event-padding Month view event padding
    --b-month-view-header-cell-color Text color in weekday header cells
    --b-month-view-header-cell-weekend-color Text color in weekday header cells for weekends
    --b-month-view-non-working-day-background Non-working day background color
    --b-month-view-padding Month view padding
    --b-month-view-today-day-num-background Today day number background color
    --b-month-view-today-day-num-border Today day number border
    --b-month-view-today-day-num-color Today day number color
    --b-month-view-today-day-num-font-weight Day number label in "today" cell
    --b-month-view-week-cell-background Week number cell background color
    --b-month-view-week-cell-color Week number cell color
    --b-month-view-week-column-width Week column width
    --b-month-view-weekrow-toggle-tool-hover-color Hovering the row toggle tool shows circle of this colour.
    Hovered
    --b-month-view-cell-header-hover-background Cell header hover background color
    --b-month-view-cell-header-hover-border-radius Cell header hover border radius
    --b-month-view-cell-header-hover-color Cell header hover color
    --b-month-view-week-cell-hover-background Week number cell hover background color
    --b-month-view-week-cell-hover-border-radius Week number cell hover border radius
    --b-month-view-week-cell-hover-color Week number cell hover color
    type: monthview

    Source path

    Calendar/widget/MonthView.js

    Contents