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
Configs
9Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Other
Properties
15
Properties
15Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of HeaderZoom class, or subclass thereof.
Identifies an object as an instance of HeaderZoom class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
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