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'
}]
});
Properties
79
Properties
79Class hierarchy
Identifies an object as an instance of ResourceTimeRangeModel class, or subclass thereof.
Identifies an object as an instance of ResourceTimeRangeModel class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isRecurringTimeSpanRecurringTimeSpan
isTimeSpanTimeSpan
isTimeZonedDatesMixinTimeZonedDatesMixin
isTreeNodeTreeNode
Other
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`.
isPersistableModel
Editing
copyOfModel
isBatchUpdatingModel
isCommittingModel
isCreatingModel
isModifiedModel
isValidModel
modificationDataModel
modificationsModel
JSON
jsonModel
Parent & children
allChildrenTreeNode
allUnfilteredChildrenTreeNode
childLevelTreeNode
descendantCountTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode
previousSiblingTreeNode
previousSiblingsTotalCountTreeNode
visibleDescendantCountTreeNode
wbsCodeTimeSpan
Recurrence
isOccurrenceRecurringTimeSpan
isRecurringRecurringTimeSpan
occurrenceIndexRecurringTimeSpan
recurrenceRecurringTimeSpan
recurrenceModelRecurringTimeSpan
supportsRecurringRecurringTimeSpan
Scheduling
datesTimeSpan
durationMSTimeSpan
isMilestoneTimeSpan
isScheduledTimeSpan
rawDurationMSTimeSpan
Functions
67
Functions
67Configuration
Editing
beginBatchModel
cancelBatchModel
clearChangesModel
copyModel
endBatchModel
getDataModel
getUnmodifiedModel
hasBatchedChangeModel
isFieldModifiedModel
removeModel
revertChangesModel
setModel
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
downloadTestCaseBase
equalsModel
exportToICSTimeSpan
linkModelLink
resolveCallbackBase
Parent & children
ancestorsExpandedTreeNode
appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
clearChildrenTreeNode
containsTreeNode
convertToParentTreeNode
getDescendantCountTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
replaceChildrenTreeNode
traverseTreeNode
traverseBeforeTreeNode
traverseWhileTreeNode
Recurrence
addExceptionDateRecurringTimeSpan
getOccurrencesForDateRangeRecurringTimeSpan
hasExceptionRecurringTimeSpan
setRecurrenceRecurringTimeSpan
Scheduling
forEachDateTimeSpan
setDurationTimeSpan
setEndDateTimeSpan
setStartDateTimeSpan
setStartEndDateTimeSpan
splitTimeSpan
Typedefs
1
Typedefs
1RelationConfigModel
Fields
2
Fields
2resourceId: String | Number
Id of the resource this time range is associated with
timeRangeColor: String
Controls this time range's primary color, defaults to using current themes default time range color.