UNPKG

@revolist/angular-datagrid

Version:

Angular DataGrid Spreadsheet component with native cell render support

16 lines (15 loc) 900 B
/** * Angular Adapter Function: * Handles the rendering and lifecycle of Angular components within StencilJS using updated Angular APIs. */ import { Injector, ComponentRef, Type } from '@angular/core'; import { ColumnDataSchemaModel, ColumnTemplateProp } from '@revolist/revogrid'; export interface AngularElement extends HTMLElement { componentRef?: ComponentRef<any>; } export interface RenderedComponent<T> { update: (newProps: T) => void; destroy: () => void; } export declare function TemplateConstructor<T extends Object>(el: AngularElement | null, AngularComponent: Type<any>, initialProps: T | undefined, injector: Injector, lastEl?: RenderedComponent<T> | null): RenderedComponent<T> | null; export declare const Template: (AngularComponent: Type<any>, customProps?: any, injector?: Injector) => (h: any, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => any;