UNPKG

gp-crm-ui

Version:

Модуль компонентов UI Имя модуля: `gp-crm-ui`

58 lines (55 loc) 1.5 kB
<div class="content"> <div class="view view--pinned" #pinnedView> <div class="canvas" [style.width.px]="pinnedCanvasWidth"> <div class="row" [style.height.px]="rowsCache.get(row)" *ngFor="let row of rows"> <div class="cell" [ngClass]="{ 'cell--swap': column.isSwap, 'cell--placeholder': column.isPlaceholder }" [style.width.px]="column.width" [style.left.px]="column.offset" *ngFor="let column of pinnedColumns"> <crm-table-cell [row]="row" [column]="column" [is]="column.component" [data]="row[column.field]" [emitterChangeHeight]="emitterChangeHeight"> </crm-table-cell> </div> </div> </div> </div> <div class="separator" [attr.hidden]="pinnedCanvasWidth ? null : 'hidden'"> </div> <div class="view" #defaultView> <div class="canvas" #defaultCanvas [style.min-width.px]="defaultCanvasWidth"> <div class="row" [style.height.px]="rowsCache.get(row)" *ngFor="let row of rows"> <div class="cell" [ngClass]="{ 'cell--swap': column.isSwap, 'cell--placeholder': column.isPlaceholder }" [style.width.px]="column.width" [style.left.px]="column.offset" *ngFor="let column of defaultColumns"> <crm-table-cell [row]="row" [column]="column" [is]="column.component" [data]="row[column.field]" [emitterChangeHeight]="emitterChangeHeight"> </crm-table-cell> </div> </div> </div> </div> </div>