exposed first, index, last, odd
This commit is contained in:
parent
d3a5cb1cc4
commit
0a3247ab81
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@poweredsoft/ngx-cdk-ui",
|
||||
"version": "0.0.7",
|
||||
"version": "0.0.8",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^9.1.9",
|
||||
"@angular/core": "^9.1.9"
|
||||
|
@ -34,7 +34,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody *ngIf="!noData else noResultTemplate">
|
||||
<tr *ngFor="let rowModel of latestResult.data; let i = index">
|
||||
<tr *ngFor="let rowModel of latestResult.data; let i = index; let first = first; let last = last; let odd = odd">
|
||||
<td *ngFor="let column of columns">
|
||||
<ng-container *ngIf="hasCellTemplate(column)">
|
||||
<ng-container
|
||||
@ -42,7 +42,10 @@
|
||||
[ngTemplateOutletContext]="{
|
||||
$implicit: rowModel,
|
||||
column: column,
|
||||
rowIndex: i
|
||||
rowIndex: i,
|
||||
first: first,
|
||||
last: last,
|
||||
odd: odd
|
||||
}"
|
||||
></ng-container>
|
||||
</ng-container>
|
||||
|
@ -1,9 +1,13 @@
|
||||
<ng-container [ngTemplateOutlet]="getViewHeaderTemplate()"></ng-container>
|
||||
<ng-container *ngIf="!noData else noResultTemplate">
|
||||
<div [ngClass]="listViewClasses">
|
||||
<ng-container *ngFor="let item of latestResult.data">
|
||||
<ng-container *ngFor="let item of latestResult.data; let index = index; let first = first; let last = last; let odd = odd">
|
||||
<ng-container [ngTemplateOutlet]="getViewItemTemplate()" [ngTemplateOutletContext]="{
|
||||
$implicit: item
|
||||
$implicit: item,
|
||||
index: index,
|
||||
first: first,
|
||||
last: last,
|
||||
odd: odd
|
||||
}">
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
Loading…
Reference in New Issue
Block a user