cancel drag event from eventDragStart callback
See original GitHub issueI need to check some criteria in “eventDragStart” callback and if criteria doesn’t match then I need to cancel the drag event completely in “eventDragStart” callback itself, so event can’t be moved at all.
Unfortunately, canceling of drag event isn’t working with “eventDragStart” callback.
so something like this:
eventDragStart: function( event, jsEvent, ui, view ) {
// this would not allow event to be dragged
if (bFlag) {
return false;
}
}
Can someone help me to cancel the drag-drop of event in “eventDragStart” callback?
I am using fullcalendar 3.7.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Modify events properties inside a eventDragStart callback
When the user starts dragging an appointment, the time slots which accepts this appointment's type should turned into green. And the time slots ......
Read more >eventDragStop - Docs - FullCalendar
Triggered when event dragging stops. ... This callback is guaranteed to be triggered after the user drags an event, even if the event...
Read more >src/Swappable/Swappable.js - Draggable - Shopify
The JavaScript Drag & Drop library your grandparents warned you about. ... @param {DragStartEvent} event - Drag start event; */; [onDragStart](event) ...
Read more >@event-calendar/list - npm
eventDragStart. Type function; Default undefined. Callback function that is triggered when the event dragging begins. function (info) { }.
Read more >Jquery – Fullcalendar drag and drop allday - iTecNote
I want to disable the allDay-events from being able to be dragged into normal ... event in a variable at drag-start (through the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any updates regarding the “the ability to return false and cancel…” - I need this option for viewRender…
Are there any news on this? Being able to cancel the drag is an essential functionality. Most users expect the drag to be cancelled when pressing ESCAPE and are wondering why nothing happens.