Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

338
Vistas
Angular CDK Overlays - Change display order when dragging

Using Angular 12.

I'm creating multiple overlays from components:

this.currentComponents.map((component, index) => {
const positionStrategy = ...
const ref = this.overlay.create({positionStrategy});
const att = ref.attach(new ComponentPortal(component)};

this.drag.createDrag(ref.overlayElement, dragConfig).withBoundaryElement...;

This creates a draggable, free-floating overlay fine. It has a component inside that works fine.

On load, we create two of these which works fine. Both are draggable elements on the page, however the second is always placed over the first. How do I re-order these elements?

Basically, when I drag element A, it should go to the top. When I drag element B, it should go to the top.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda