@pega/dx-component-builder-sdk
Version:
Utility for building custom UI components
13 lines (12 loc) • 605 B
HTML
<div>
<mat-button-toggle-group vertical hideSingleSelectionIndicator (change)="onChange($event.value)" [value]="selectedTabId$" aria-label="Tabs">
<mat-button-toggle *ngFor="let tab of tabConfig$" [value]="tab.id" style="text-align: left">
<div style="display: flex">
<div style="flex-grow: 10">{{ tab.name }}</div>
<div style="flex-grow: 1">
<span *ngIf="tab?.count" [matBadge]="tab.count" matBadgeOverlap="false" matBadgePosition="after" class="psdk-vtab-badge"> </span>
</div>
</div>
</mat-button-toggle>
</mat-button-toggle-group>
</div>