Hello @ocanela,
I hope I clarified my question.
Thank you for the information, everything is clear now.
In this same example, I would like to be able to drag the column header to the dashboard.
The main issue here is that the dashboard component doesn’t register the dragged element if the source component doesn’t have the getItem()
method, which is the reason the drop is being cancelled (or rather, the drag marker is not being created). While dragging a column, the drag context is completely different from the case where you drag a row, and the getItem()
method isn’t returned (and isn’t applicable to the column, either way). To allow for this custom behaviour, you will need to modify the dashboard component via the protoUI
method.
Here is a very rough example: https://snippet.webix.com/8x5lfhfd. You need to look out for the $dragIn
method, where the context is being checked, by default it looks like this:
if (!context.from || !context.from.getItem) return false;
Please note that I’ve only accounted for this specific case, in case you wish to implement some other custom DnD behaviour, you will have to watch closely for the incoming context and change the behaviour accordingly.