summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/shared/components/description/description.component.html
blob: fb7a188a02a1b6d6d9b89851bdec88bcf1022dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div *ngIf="nzTitle" class="descriptions-header">
    <div class="descriptions-title">
        {{ nzTitle }} 
      </div>
</div>
<div class="descriptions-view">
    <table class="descriptions-table">
      <tbody>
        <tr *ngFor="let row of itemMatrix; let i = index" class="descriptions-row">
            <ng-container *ngFor="let item of row; trackBy item; let isLast = last">
                <td class="descriptions-item" [colSpan]="item.span">
                    <div class="descriptions-item-container">
                      <span class="descriptions-item-label" [class.descriptions-item-no-colon]="!nzColon">
                        {{ item.title }}
                      </span>
                      <span class="descriptions-item-content">
                        <ng-template [ngTemplateOutlet]="item.content"></ng-template>
                      </span>
                    </div>
                  </td>
            </ng-container>
        </tr>
      </tbody>
    </table>
</div>