@pega/dx-component-builder-sdk
Version:
Utility for building custom UI components
24 lines (22 loc) • 850 B
HTML
<article class="psdk-announcement">
<h2>{{ configProps$.header }}</h2>
<div>
<p>{{ configProps$.description }}</p>
<div>
<h3>{{ configProps$.label }}</h3>
<ul>
<li *ngFor="let detail of details$">{{ detail }}</li>
</ul>
</div>
</div>
<a *ngIf="configProps$.whatsnewlink != ''" mat-raised-button color="primary" [href]="configProps$.whatsnewlink">See what's new</a>
</article>
<br />
<table mat-table [dataSource]="workList">
<ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.fieldName">
<th mat-header-cell *matHeaderCellDef>{{ dCol.label }}</th>
<td mat-cell *matCellDef="let element">{{ element[dCol.fieldName] }}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
</table>