Our pure JavaScript Scheduler component


Post by hoangtruongdz96 »

mats wrote: Wed Aug 17, 2022 10:23 am

Look at https://bryntum.com/docs/scheduler/api/Scheduler/feature/EventDrag#event-eventDrop and see the eventRecords array which you can use to find the new start dates.

I need to get new resourceId when drop. But eventDrop i can't find it
desired: on drop i want to get startDate and newResourceId


Post by hoangtruongdz96 »

Animal wrote: Thu Aug 18, 2022 7:21 am

Have you used your own custom CSS to hide the tooltip?

That error is thrown if the tooltip is unexpectedly style display : none without it knowing that it is hidden (The hide() method should be called)

I used:

.b-eventdrag-tooltip {
  display: none;
}

and

eventDrag(event: IDrag) {
          const { source } = event;
          source.features.eventDrag.tip.hide();
        },

but still error like in images


Post by hoangtruongdz96 »

https://bryntum.com/docs/scheduler/api/Scheduler/feature/EventDrag#event-eventDrop
newResource : Scheduler.model.ResourceModel => only return 1 event, not the event array when doing drag and drop of many events


Post by Animal »

hoangtruongdz96 wrote: Thu Aug 18, 2022 9:18 am

I used:

.b-eventdrag-tooltip {
  display: none;
}

but still error like in images

Right, that's why the error happens. It should be possible to use

features : {
    eventDrag : {
        tip : null
    }
}

To inhibit creation of the tooltip for dragging, but that causes errors, so here's a ticket that will fix it: https://github.com/bryntum/support/issues/5078


Post Reply