Page 2 of 2
Re: [REACT] dragselection scheduler
Posted: Thu Aug 18, 2022 9:14 am
by hoangtruongdz96
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
Re: [REACT] dragselection scheduler
Posted: Thu Aug 18, 2022 9:18 am
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
Re: [REACT] dragselection scheduler
Posted: Thu Aug 18, 2022 10:24 am
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
Re: [REACT] dragselection scheduler
Posted: Thu Aug 18, 2022 11:06 am
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