UNPKG

@anglr/grid

Version:
22 lines 1.1 kB
import { PipeTransform } from '@angular/core'; import { CellTemplateContext, Grid, GridPluginInstances } from '../../interfaces'; import { CellContextFactoryFn } from '../../misc/types'; import * as i0 from "@angular/core"; /** * Obtains cell context for template */ export declare class CellContextPipe implements PipeTransform { protected factoryFn: CellContextFactoryFn; protected grid: Grid; plugins: GridPluginInstances; constructor(factoryFn: CellContextFactoryFn, grid: Grid, plugins: GridPluginInstances); /** * Obtains cell context for cell template * @param columnMetadata - Column metadata for rendered cell * @param index - Index of row for currently rendered cell */ transform<TColumnMetadata, TContext extends CellTemplateContext<TColumnMetadata> = CellTemplateContext<TColumnMetadata>>(columnMetadata: TColumnMetadata, index: number): TContext; static ɵfac: i0.ɵɵFactoryDeclaration<CellContextPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<CellContextPipe, "cellContext", true>; } //# sourceMappingURL=cellContext.pipe.d.ts.map