EventNonWorkingTime
Feature that allows rendering non-working time ranges into event bars (weekends for Scheduler, effective calendar for SchedulerPro):
Event non-working time
//<code-header>
fiddle.title = 'Event non-working time';
//</code-header>
const scheduler = new Scheduler({
appendTo : targetElement,
// makes scheduler as high as it needs to be to fit rows
autoHeight : true,
features : {
eventNonWorkingTime : true
},
startDate : new Date(2018, 4, 6),
endDate : new Date(2018, 4, 13),
eventStyle : 'filled',
columns : [
{ field : 'name', text : 'Name', width : 100 }
],
resources : [
{ id : 1, name : 'Bernard' },
{ id : 2, name : 'Bianca' }
],
events : [
{ id : 1, resourceId : 1, name : 'Sunday', startDate : '2018-05-06', endDate : '2018-05-08' },
{ id : 2, resourceId : 2, name : 'Saturday', startDate : '2018-05-11', endDate : '2018-05-13' }
]
});Please note that to not clutter the view (and have a large negative effect on performance) the feature bails out of rendering ranges for very zoomed out views (see maxTimeAxisUnit for details).
This feature is disabled by default. For info on enabling it, see GridFeatures.
Configs
10
Configs
10Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Properties
16
Properties
16Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of EventNonWorkingTime class, or subclass thereof.
Identifies an object as an instance of EventNonWorkingTime class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
isNonWorkingTimeMixinNonWorkingTimeMixin
Other
Functions
28
Functions
28Configuration
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
doDisableInstancePlugin
downloadTestCaseBase
resolveCallbackBase
updateLocalizationLocalizable
Other
addListenerEvents
hasListenerEvents
onEvents
relayAllEvents
removeAllListenersEvents
removeListenerEvents
resumeEventsEvents
suspendEventsEvents
triggerEvents
unEvents
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
1
Typedefs
1BryntumListenerConfigEvents
CSS variables
1
CSS variables
1| Name | Description |
|---|---|
--b-event-non-working-time-opacity | Non working time opacity |