HeaderZoom

Enables users to click and drag to zoom to a date range in Scheduler's header time axis. Only supported in horizontal mode.

const scheduler = new Scheduler({
  features : {
    headerZoom : true
  }
});

Header zoom
//<code-header>
fiddle.title = 'Header zoom';
//</code-header>
targetElement.innerHTML = '<p>Click and drag in the header time axis to zoom the Scheduler:</p>';
const scheduler = new Scheduler({
    appendTo : targetElement,

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

    features : {
        headerZoom : true
    },

    startDate : new Date(2018, 4, 6),
    endDate   : new Date(2018, 4, 13),

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

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

This feature uses the zoomToSpan method internally. If the selected date range cannot fit within zoom levels greater than the current zoom level, the zoom level will not be increased and will remain unchanged. noZoomChange event is fired in this case.

Not compatible with the TimeSelection feature, or with vertical mode.

This feature is disabled by default. For info on enabling it, see GridFeatures.

Configs

9

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

Properties

15

Common

disabledInstancePlugin

Class hierarchy

isHeaderZoom: Boolean= truereadonly
Identifies an object as an instance of HeaderZoom class, or subclass thereof.
isHeaderZoom: Boolean= truereadonlystatic
Identifies an object as an instance of HeaderZoom 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