UNPKG

@pega/dx-component-builder-sdk

Version:

Utility for building custom UI components

13 lines (12 loc) 534 B
<mat-tab-group (selectedTabChange)="handleTabClick($event)"> <mat-tab *ngFor="let tab of tabItems; let i = index" [label]="tab.name"> <div class="psdk-sub-tabs" *ngIf="+currentTabId == i"> <component-mapper *ngIf="tab.content?.getPConnect() as tabPConn" [name]="tabPConn.getComponentName()" [props]="{ pConn$: tabPConn, formGroup$ }" errorMsg="SubTabs wants component not yet available: {{ tabPConn.getComponentName() }}" ></component-mapper> </div> </mat-tab> </mat-tab-group>