Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

344
Views
Superposiciones angulares de CDK: cambie el orden de visualización al arrastrar

Usando Angular 12.

Estoy creando múltiples superposiciones a partir de componentes:

 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...;

Esto crea una fina superposición que se puede arrastrar y flotar libremente. Tiene un componente dentro que funciona bien.

En carga, creamos dos de estos que funcionan bien. Ambos son elementos que se pueden arrastrar en la página, sin embargo, el segundo siempre se coloca sobre el primero. ¿Cómo reordeno estos elementos?

Básicamente, cuando arrastro el elemento A, debería ir a la parte superior. Cuando arrastro el elemento B, debería ir a la parte superior.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!