v7.3.0

CalendarFeature
Abstract

The base abstract class for Calendar features. All Calendar-specific features extend this class, which provides common infrastructure such as per-view zone management, a paint lifecycle hook, and automatic disabling when the Calendar is in read-only mode. Subclasses implement specific user interactions like drag-and-drop, context menus, and tooltips.

Calendar features are enabled or configured through the features config of the Calendar:

const calendar = new Calendar({
    features : {
        // Enable a disabled-by-default feature
        weekExpander : true,

// Configure an enabled-by-default feature eventTooltip : { showOn : 'hover' },

// Disable an enabled-by-default feature eventEdit : false } });

// Access a feature at runtime calendar.features.eventTooltip.disabled = true;

See also

  • Calendar — The Calendar that features are attached to
  • CalendarDrag — Example of a concrete Calendar feature
  • EventEdit — Example of a concrete Calendar feature
No results

Properties

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

Source path

Calendar/feature/CalendarFeature.js

Contents