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

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

maxTimeAxisUnitNonWorkingTimeMixin

Properties

16

Common

disabledInstancePlugin

Class hierarchy

isEventNonWorkingTime: Boolean= truereadonly
Identifies an object as an instance of EventNonWorkingTime class, or subclass thereof.
isEventNonWorkingTime: Boolean= truereadonlystatic
Identifies an object as an instance of EventNonWorkingTime class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
isNonWorkingTimeMixinNonWorkingTimeMixin

Lifecycle

configBase

Misc

clientInstancePlugin
localeHelperLocalizable
localeManagerLocalizable

Other

Functions

28

Configuration

applyDefaultsstaticBase

Events

Lifecycle

destroystaticBase

Misc

doDisableInstancePlugin
initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Events

5
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin

Event handlers

5
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin

Typedefs

1

CSS variables

1
NameDescription
--b-event-non-working-time-opacityNon working time opacity