No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

Estilos en Tablas

20/24
Recursos

Aportes 1

Preguntas 1

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

```js columnConfig: ColumnConfig[] = [ { name: '#No', header: 'Id.', field: 'id', type: 'text' }, { name: 'Name', header: 'Title', field: 'title', type: 'text' }, { name: 'price', header: 'Price', field: 'price', type: 'text', showTotal: true }, { name: 'cover', header: 'Cover', field: 'images', type: 'image' }, { name: 'actions', header: 'Actions', field: '', type: 'action' } ]; ``` ```js @for (column of columnConfig; track column.name) { <ng-container [cdkColumnDef]="column.name"> {{ column.header }} @if (column.type === 'image') { } @else if (column.type === 'action') { <app-btn (click)="update(row)">Update</app-btn> } @else { {{ row[column.field] }} } @if (column.showTotal) { {{ total }} } </ng-container> } ```