let scheduler = new Scheduler({
appendTo: 'container',
minHeight: '20em',
resources: resources,
events: events,
startDate: new Date(2017, 0, 1, 6),
endDate: new Date(2017, 1, 1, 6),
viewPreset: 'weekAndDay',
rowHeight: 50,
barMargin: 5,
multiEventSelect: true,
columns: [{ text: 'Name', field: 'name', width: 130 }],
zoomLevels: [
{
width: 50,
increment: 4,
resolution: 60,
preset: 'hourAndDay',
resolutionUnit: 'minute'
},
{
width: 60,
increment: 3,
resolution: 60,
preset: 'hourAndDay',
resolutionUnit: 'minute'
},
{
width: 80,
increment: 2,
resolution: 30,
preset: 'hourAndDay',
resolutionUnit: 'minute'
},
{
width: 100,
increment: 1,
resolution: 15,
preset: 'hourAndDay',
resolutionUnit: 'minute'
}
]
});
Here I need to keep the scheduler start(2017, 0, 1, 6) and end(2017, 1, 1, 6) dates while I'm zooming in or out with a given preset, but it is not possible do in this example, start and end date will disappear from the scheduler while zooming,
Is there a way to apply the preset time ranges for its zoom levels too or how does that handle?
Thanks