v7.3.0

EventHighlighting
Mixin

Mixin that provides event highlighting for the Calendar. Highlighted events are displayed at full opacity while non-highlighted events fade to 20% opacity.

This matches the highlightEvents() / unhighlightEvents() API available on Scheduler and Gantt via TimelineBase.

const calendar = new Calendar({ ... });

// Highlight specific events by id calendar.highlightEvents({ events : [1, 2, 3] });

// Highlight and scroll to the event calendar.highlightEvents({ events : 42, scroll : true });

// Remove all highlighting calendar.unhighlightEvents();
No results

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class
    • Called from onCalendarStoreChange to clean up highlighted events for records that have been removed from the event store.

    • updateHighlighted( )
      private

      Syncs the b-highlighted CSS class on all visible event elements to match the current set of highlighted event records.

    Source path

    Calendar/view/mixin/EventHighlighting.js

    Contents