1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Firing dragOver event while using @angular/cdk/drag-drop

Discussão em 'Angular' iniciado por ABC, Maio 14, 2025.

  1. ABC

    ABC Guest

    I use @angular/cdk/drag-drop module in my app. Dragging and dropping works as expected, but I want to do some actions when drag item is on top of drop area.

    I tried this code, but it seems that onDragOver method is not called

    <div cdkDropList>
    <span (dragover)="onDragOver($event)">...</span>
    <div>

    onDragOver($event){
    console.log('ondragover');
    }


    Is there any built in way in @angular/cdk/drag-drop to achieve this?

    Continue reading...

Compartilhe esta Página