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

80
Vistas
Creating carousel with collapse/expand tab in Angular

I'm trying to create this carousel in Angular with multiple items but on click on each item the tab should show in the full page width.

I've used owl-carousel from https://www.npmjs.com/package/ngx-owl-carousel-o It works well, the slider is working fine, the issue now is as the content is inside (refer image below) the item it takes up only that much width. To make it expandable on full width I need to take the content outside the slider and I require help in that as I am newbie in angular.

Issue: enter image description here

Trying to achieve: enter image description here

Temporary solution:

  toggleDisplay(divVal: string) {
console.log(divVal)
if(divVal == 'Weekly'){
  this.weeklyDiv = !this.weeklyDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'CDH'){
  this.cdhDiv = !this.cdhDiv;
  this.weeklyDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'CS'){
  this.csLiteDiv = !this.csLiteDiv;
  this.cdhDiv = false;
  this.weeklyDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'TSA'){
  this.tsaLiteDiv = !this.tsaLiteDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.weeklyDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'TSAM'){
  this.tsamDiv = !this.tsamDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.weeklyDiv = false;
}

}

I understand its not good practice and can be refined, kindly help with a proper solution or If you know any such slider already in place please share it.

Thanks,

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