v7.3.0

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

No results

Fields

Fields belong to a Model class and define the Model data structure

Properties

Properties are getters/setters or publicly accessible variables on this class

Source path

Scheduler/model/ResourceTimeRangeModel.js

Contents