v7.3.0

CalendarStores
Mixin

Mixin that provides store management and data binding for the Calendar. It connects the Calendar to its underlying data stores (event store, resource store, time range store) through a project, and manages the CrudManager for server communication. This mixin also handles default calendar assignment for new events, time zone configuration, and propagation of store references to child widgets such as the sidebar date picker and resource filter.

Classes that use this mixin gain access to data stores. For example, through a Calendar:

const calendar = new Calendar({
    // Inline event data
    events : [
        { id : 1, name : 'Meeting', startDate : '2024-01-15 09:00', endDate : '2024-01-15 10:00' }
    ],
    // Inline resource data
    resources : [
        { id : 1, name : 'Default Calendar', eventColor : 'blue' }
    ],
    // Assign events to the default resource
    defaultCalendar : 1
});

// Access stores programmatically calendar.eventStore.add({ name : 'New event', startDate : '2024-01-16 14:00', endDate : '2024-01-16 15:00' });

See also

  • ProjectModel — The project that bundles all stores
  • CrudManager — CrudManager for server communication
  • Calendar — The Calendar class that uses this mixin
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

Source path

Calendar/mixin/CalendarStores.js

Contents