Ok, this is a little more complex issue with multiple questions.
1.) I have setup a Splitter Component in a Window Component. In one of the Splitter-Windows I have buttons which I have "enhanced" with the Drag&Drop functionality and that works only inside the same Splitter window, meaning I can't move them from one Splitter window to another. Is it possible to use the DragAndDrop over multiple Splitter windows? See attached screenshot. I have currently put the <DragAndDrop> around the <Splitter> Component like below but it doesn't seem to help.
<DragAndDrop>
<Splitter
style={{ height: '100%' }}
panes={outerPanes}
orientation="horizontal"
onChange={splitterOuterChange}
>
<WeekCalendarProfiles program={props.item} />
<Splitter
style={{ height: '100%' }}
panes={innerPanes}
orientation="vertical"
onChange={splitterInnerChange}
>
<WeekCalendar program={props.item} />
<WeekCalendarChannels program={props.item} />
</Splitter>
</Splitter>
</DragAndDrop>
const CustomViewSlot = (props: SchedulerViewSlotProps) => {
return (
<>
<DroppableBox onDrop={handleDrop} id={guid()} selected={selected}>
<SchedulerViewSlot {...props} style={{ ...props.style }} />
</DroppableBox>
</>
);
};
My issue is: How would I be able to get access to the data of the slot where there box would be dropped and trigger an add dialog for an event?
3.) The CustomViewSlot will automatically get assigned to all slots of the calendar view. Is it possible to assign the CustomViewSlot to the 'all day' slots only?
Thanks!