Hi there
How can the scheduler be configured, that uses can drag events not only to durations of 30 minutes.
Based on default settings events can only be dragged to 08:00 or 08:30 but we would also like to drag events to 08:15 or other times.
Thanks in advance
Support Forum
You could either set snap to false or you can change timeResolution in viewPreset.
Hi Saki,
I have added below code to customize the timeResolution in the Angular 7 scheduler but still, it is not working.
Please let me know how can I fix this issue.
I have added below code to customize the timeResolution in the Angular 7 scheduler but still, it is not working.
const viewPreset: any = PresetManager.getPreset('hourAndDay');
console.log('viewPreset ', viewPreset);
if (viewPreset) {
viewPreset.timeResolution = {
increment: 5,
unit: 'minute'
}
console.log('before setting ', viewPreset);
this.scheduler.viewPreset = viewPreset;
}
If you want to change it at runtime then change it directly on scheduler. Demo:
- https://bryntum.com/examples/scheduler/animations/
- in console: bryntum.query('scheduler').timeResolution = 5
- drag & drop an event