mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Make tabular data styles consistent across the app, whether that's a native or Material table. PR Close #62466
32 lines
727 B
HTML
32 lines
727 B
HTML
<th>{{label()}}</th>
|
|
<td>
|
|
@switch (type()) {
|
|
@case ('chip') {
|
|
<button
|
|
ng-button
|
|
size="compact"
|
|
(click)="btnClick.emit('')"
|
|
[disabled]="isRouteWithoutComponent()"
|
|
>
|
|
{{ data() }}
|
|
</button>
|
|
}
|
|
@case ('flag') {
|
|
<span [class]="data() ? 'tag-active' : 'tag-inactive'">
|
|
{{ data() }}
|
|
</span>
|
|
}
|
|
@case ('list') {
|
|
<div class="chips-container">
|
|
@for (provider of dataArray(); track $index) {
|
|
<button ng-button size="compact" (click)="btnClick.emit(provider)">
|
|
{{ provider }}
|
|
</button>
|
|
}
|
|
</div>
|
|
}
|
|
@default {
|
|
<span class="row-data">{{ data() }}</span>
|
|
}
|
|
}
|
|
</td>
|