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-
The constructor of the time range model class, to be used in the project. Will be set as the modelClass property of the timeRangeStore
-
The constructor to create an timeRange store instance with. Should be a class, subclassing the Store
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ProjectModel class, or subclass thereof.
-
Identifies an object as an instance of ProjectModel class, or subclass thereof.