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

256
Visualizações
Is it possible to create tables within Angular ts files?

So I have an array which holds different categories to compare different companies. Depending on the user selection there may be 3 categories or 10 to display. I am looking for a dynamic way to insert tables on demand depending on how many categories are selected. Is there a library in Angular or around somewhere which can help with this task ?

I would rather not create 30 tables based off of categories and just hide the unwanted ones.

Thank you.

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

0

I'd use a grid and dynamically set the columns based on user selection as per your requirement.

I usually use ag-Grid library which is a fantastic easy to use library. The free version should suffice for your requirment. Have a look here, https://blog.ag-grid.com/binding-and-updating-column-definitions-in-ag-grid/

about 4 years ago · Juan Pablo Isaza Relatório

0

I figured a work around for my issue. I have all the categories in an Array, then I iterate through the array via *ngFor which will load a component

<div *ngFor="let category of Categories">
    <app-display-table-component></app-display-table-component>
</div>

for every category. Inside each component I will show the data regarding the category name.

Thanks for the help guys.

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