Hi, until now I have only been displaying around 24 hours of data, so I define my own single view preset...
this.viewPreset = 'hourAndDay';
PresetManager.registerPreset(this.viewPreset, {
tickWidth: 50,
rowHeight: 10,
displayDateFormat: this.runtimeStatusService.getCacheShortTimePattern(),
shiftIncrement: 1,
shiftUnit: 'day',
timeResolution: {
unit: 'hour',
increment: 0.08
},
defaultSpan: 24,
headers: [{
unit: 'hour',
dateFormat: this.runtimeStatusService.getCacheShortTimePattern(),
}]
});
HTML
<bryntum-scheduler #scheduler
...
[viewPreset]="viewPreset"
...
I now want to look at zooming as about to load a longer period of time.
As an experiment, I removed my viewPreset (so it would fall back to the deault), and tried using the zoomLevel (https://bryntum.com/products/scheduler/docs/api/Scheduler/view/mixin/TimelineZoomable#property-zoomLevel) but it did not seem to do anything.
However, I noticed there was header context menu that has a zoom on it..
This seems to do what I am after, however I would like to do the same thing from my own (always visible) slider as opposed to this right click menu.
Is there a way to do this?
Thanks in advance?