angular/devtools/projects/ng-devtools/src/lib/devtools-tabs/router-tree/route-details-row.component.html
hawkgs 85e387a090 refactor(devtools): unify table styles (#62466)
Make tabular data styles consistent across the app, whether that's a native or Material table.

PR Close #62466
2025-07-07 15:24:24 +00:00

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>