projects/angular/components/ui-grid/src/body/ui-grid-row-card-view.directive.ts
Properties |
data |
data:
|
Type : T
|
index |
index:
|
Type : number
|
last |
last:
|
Type : boolean
|
import {
ContentChild,
Directive, TemplateRef,
} from '@angular/core';
export interface IGridRowCardViewContext<T> {
index: number;
last: boolean;
data: T;
}
@Directive({ selector: '[uiGridRowCardView], ui-grid-row-card-view' })
export class UiGridRowCardViewDirective<T> {
@ContentChild(TemplateRef, {
static: true,
})
html?: TemplateRef<IGridRowCardViewContext<T>>;
}