ResourceTimeRangeModel
This class represent a single resource time range in your schedule. To style the rendered elements, use cls or timeRangeColor field. The class is used by the ResourceTimeRanges feature.
Recurring ranges support
You can also make ranges recurring by adding a recurrenceRule to the range data.
// Make new store that supports time ranges recurrence
const store = new ResourceTimeRangeStore({
data : [{ {
id : 1,
resourceId : 'r1',
startDate : '2019-01-01T11:00',
endDate : '2019-01-01T13:00',
name : 'Coffee break',
// this time range should repeat every day
recurrenceRule : 'FREQ=DAILY'
}]
});
See also
- ResourceTimeRangeStore - Store for resource time ranges
- ResourceTimeRanges - Resource time ranges feature
- TimeSpan - Base time span model
No results
Fields
Fields belong to a Model class and define the Model data structure-
Id of the resource this time range is associated with
-
Controls this time range's primary color, defaults to using current themes default time range color.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ResourceTimeRangeModel class, or subclass thereof.
-
The associated resource, retrieved using a relation to a ResourceStore determined by the value assigned to
resourceId. The relation also lets you access all time ranges on a resource through timeRanges`. -
Identifies an object as an instance of ResourceTimeRangeModel class, or subclass thereof.