ng2-stable-nxtc
Version:
Angular Smart Table neXtCode Version
1 lines • 664 B
HTML
<div [ngClass]="cell.getColumn().viewClass" [ngSwitch]="cell.getColumn().type"><custom-view-component *ngSwitchCase="'custom'" [cell]="cell"></custom-view-component><div *ngSwitchCase="'html'" [innerHTML]="cell.getValue()"></div><div *ngSwitchCase="'currency'"><ng-container *ngIf="cell.getColumn().currency.decimals; then fixedDecimals; else normal"></ng-container><ng-template #fixedDecimals>{{ printFixedDecimals(cell.getValue()) }}</ng-template><ng-template #normal>{{ cell.getValue() }}</ng-template><span *ngIf="cell.getColumn().currency.symbol">{{ ' ' + cell.getColumn().currency.symbol }}</span></div><div *ngSwitchDefault>{{ cell.getValue() }}</div></div>