Undo drop in nz-zorro tree

Discussão em 'Angular' iniciado por Ashim, Janeiro 22, 2025.

  1. Ashim

    Ashim Guest

    I have following code for the tree. HTML:

    <nz-tree
    [nzTreeTemplate]="nzTreeTemplate"
    (nzOnDrop)="onNzOnDrop($event)" [nzData]="nodes" nzDraggable>
    </nz-tree>
    <ng-template #nzTreeTemplate let-node>
    ...
    </ng-template>


    Component:

    onNzOnDrop($event: NzFormatEmitEvent) {
    [doing something that causes error]
    [revert the drop]
    }


    How to undo the drop in this case? Thank you.

    Continue reading...

Compartilhe esta Página