Currently, when I'm using dndType property it is not possible to determine it in dndDrop event, there is no such property. I expected "type" property to be the same as I set in dndType.
Workaround to get dropped item type is to pass object into dndDraggable input like this:
[dndDraggable]="{item: control, type: 'control'}"
and then in dndDrop($event) it is available in $event.data.type;
Reason: I need to use different logic when different types of data dropped into dropzone
Currently, when I'm using dndType property it is not possible to determine it in dndDrop event, there is no such property. I expected "type" property to be the same as I set in dndType. Workaround to get dropped item type is to pass object into dndDraggable input like this:
[dndDraggable]="{item: control, type: 'control'}"
and then in dndDrop($event) it is available in $event.data.type;Reason: I need to use different logic when different types of data dropped into dropzone