EventFilter

Adds event filter menu items to the timeline header context menu.

Event filter
//<code-header>
fiddle.title = 'Event filter';
//</code-header>
targetElement.innerHTML = '<p>Right click the timeline header to open context menu and type in the "Filter tasks" menu item to filter tasks in the Scheduler:</p>';

const scheduler         = new Scheduler({
    appendTo : targetElement,

    // makes scheduler as high as it needs to be to fit rows
    autoHeight : true,

    features : {
        eventFilter : true // true by default
    },

    startDate : new Date(2021, 4, 3),
    endDate   : new Date(2021, 4, 10),

    columns : [
        { field : 'name', text : 'Name', width : 100 }
    ],

    resources : [
        { id : 1, name : 'Bernard' },
        { id : 2, name : 'Bianca' }
    ],

    events : [
        { id : 1, name : 'Golf', resourceId : 1, startDate : '2021-05-04', endDate : '2021-05-05' },
        { id : 2, name : 'Fitness', resourceId : 2, startDate : '2021-05-05', endDate : '2021-05-06' }
    ]
});

const scheduler = new Scheduler({
  features : {
    eventFilter : true // `true` by default, set to `false` to disable the feature and remove the menu item from the timeline header
  }
});

This feature is enabled by default

Configs

9

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

Properties

15

Common

disabledInstancePlugin

Class hierarchy

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

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