Our pure JavaScript Scheduler component


Post by oleh »

Hello!

Is it possible to snap an event while dragging it from grid?
https://bryntum.com/examples/scheduler/dragfromgrid/

Config's snap property does not work in this case, as well as showExactDropPosition from eventDrag feature.

Also, I would like to show a vertical line to mark the dragged event start date similar to this one
https://bryntum.com/examples/scheduler/scrollto/ or highlight resource row and time slot where the event will be dropped.
Is it possible somehow?

Thank you


Post by mats »

It's not possible out of the box, not supported. The short answer is, anything is possible! You just need to study the docs a bit and find the APIs to use. Some starting points:

https://bryntum.com/docs/scheduler/#Scheduler/view/model/TimeAxisViewModel#function-getPositionFromDate
https://bryntum.com/docs/scheduler/#Scheduler/view/mixin/TimelineDateMapper#function-getDateFromCoordinate
https://bryntum.com/docs/scheduler/#Core/helper/DragHelper#event-drag

You can also engage our Professional Services to help you.


Post by oleh »

Thank you @mats, I'll try this.

What about the second part?
I would like to show a vertical line to mark the dragged event start date similar to this one
https://bryntum.com/examples/scheduler/scrollto/ or highlight resource row and time slot where the event will be dropped.
Is it possible somehow?


Post by alex.l »

Hi oleh,

We don't have it implemented. You can try to do it yourself using DragHelper's events https://www.bryntum.com/docs/scheduler/#Core/helper/DragHelper#event-drag and https://www.bryntum.com/docs/scheduler/#Core/helper/DomHelper#function-highlight-static if you want exactly the same highlighting.
Please check https://bryntum.com/examples/scheduler/dragfromgrid/ example to see how to get resource that you hover on.
If you need help with implementation, please contact our Sales for Professional Services and our developers will help you out. https://www.bryntum.com/services/

All the best,
Alex


Post by oleh »

Thank you for the answers


Post Reply