v7.3.0

EventList
Widget

A Grid view of the EventStore.

This shows a configured range of events from the event store.

When used as a mode of a Calendar, the configured range is snapped to encapsulate the Calendar's current date.

If configured with an explicit startDate and endDate, the range is not used. When setting the date, the duration of the configured range is preserved, but the range is shifted backwards or forwards in time just enough to bring the passed Date into view.

The EventList's header context menu is extended to allow the user to change the range type. This may be disabled by configuring the listRangeMenu as null.

For further information about features available to be configured directly into EventList calendar views, see the Grid documentation and the associated examples.

Useful configs

Config Description
range Time range to display (e.g. '1 month')
columns Column definitions for the event grid
listRangeMenu Menu for changing the displayed range
eventRenderer Custom renderer for event content

See also

  • Calendar — The main Calendar that hosts this view
  • AgendaView — Subclass providing a richer agenda layout
  • EventColumn — The column that renders event details
  • RangeMenu — Menu for changing the displayed time range
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

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

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

Functions

Functions are methods available for calling on the class
    • Creates the Month utility object. We use it to track what week we are looking at.

    • When the date we have been told to look at changes, recalculate the date range. If the date range changes, this will cause a refill of our grid store from the master event store.

    • populateStoreSoon( )
      private

      This is called when our store needs to be repopulated from the eventStore

    • When an EventStore arrives, chain off a slave store from that which we can then filter to only show the week we are focused upon.

    CSS variables

    CSS variables that can be set to adjust appearance
    Name Description
    --b-event-list-day-selector-selected-date-background Selected date's background color in the day selector
    --b-event-list-day-selector-selected-date-color Selected date's color in the day selector
    --b-event-list-event-column-resource-row-gap Gap between resource avatars