Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

87
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda