DndDirective
class
Element that can share or accept a data of dragged dom element.
- the class
dnd-overis added to the element when a dragged data hover the element. - the class
dnd-dragis added to the element when the element is dragged.
Properties
| Name | Type | Description |
|---|---|---|
dndData? |
string |
The data to share with the element |
dndTarget |
number |
|
draggable |
boolean |
A value indicating whether the element can share a data or not |
droppable |
boolean |
A value indicating whether a data can be dropped to this element |
dropped |
EventEmitter<DndData> |
emits after a data is dropped. |
hovered |
EventEmitter<boolean> |
emits after a data hover the element |
ngAfterContentInit()
Signature
ngAfterContentInit(): voidReturns
void