v7.3.0

ProjectModel

This class represents the global project for a Calendar, serving as the central data hub that holds references to all stores used by the Calendar including the event store, resource store, and time range store. It extends the Scheduler's ProjectModel to add Calendar-specific store types such as the TimeRangeStore and its associated TimeRangeModel.

For more information, see ProjectModel.

const calendar = new Calendar({
    project : {
        eventStore : {
            data : [
                { id : 1, name : 'Meeting', startDate : '2024-01-15 09:00', endDate : '2024-01-15 10:00' }
            ]
        },
        resourceStore : {
            data : [
                { id : 1, name : 'Default Calendar', eventColor : 'blue' }
            ]
        },
        timeRangeStore : {
            data : [
                { id : 1, name : 'Lunch', startDate : '2024-01-15 12:00', endDate : '2024-01-15 13:00' }
            ]
        }
    }
});

See also

  • Calendar — The Calendar that consumes this project
  • TimeRangeStore — The time range store managed by this project
  • CrudManager — CrudManager for server-side data synchronization
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/model/ProjectModel.js

Contents