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

203
Visualizações
Is it possible to create dynamic tabs in Kendo Angular Tabstrip?

I want to create tabstrip and append inside tab when i click from left menu. I created all my components and use this components as an Content of dynamic tabs.

Is it possible with kendo Angular Tabstrip Layout?

Thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can using the built-in ngFor to have the component's template loop over a collection variable defined on the component to dynamically show the tabs.

Take a look at this example. If you were to add or remove from the tabs variable, it will dynamically be reflected in the DOM.

Component's Template:

<kendo-tabstrip>
  <kendo-tabstrip-tab *ngFor="let tab of tabs; let first = first" [title]="tab.header" [selected]="first">
    <ng-template kendoTabContent>
      <div class="content">
        <img [src]="tab.body.image" />
        <h2>{{ tab.body.degrees }}<span>ºC</span></h2>
        <span>{{ tab.body.description }}</span>
      </div>
    </ng-template>
  </kendo-tabstrip-tab>
</kendo-tabstrip>

Variable Declared in Component:

tabs = [
  {
    header: 'Paris',
    body: {
      image:
        'https://www.telerik.com/kendo-angular-ui-develop/components/layout/assets/tabstrip/rainy.png',
      degrees: '17',
      description: 'Rainy weather in Paris.',
    },
  },
  {
    header: 'New York City',
    body: {
      image:
        'https://www.telerik.com/kendo-angular-ui-develop/components/layout/assets/tabstrip/cloudy.png',
      degrees: '19',
      description: 'Cloudy weather in New York City.',
    },
  },
  {
    header: 'Tallinn',
    body: {
      image:
        'https://www.telerik.com/kendo-angular-ui-develop/components/layout/assets/tabstrip/sunny.png',
      degrees: '23',
      description: 'Sunny weather in Tallinn.',
    },
  },
  {
    header: 'London',
    body: {
      image:
        'https://www.telerik.com/kendo-angular-ui-develop/components/layout/assets/tabstrip/rainy.png',
      degrees: '16',
      description: 'Rainy weather in London.',
    },
  },
];

Stackblitz: https://stackblitz.com/edit/angular-iwwkxv

about 4 years ago · Juan Pablo Isaza Relatório
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