UNPKG

ng-fusion-ui

Version:

Angular data table library!

41 lines (40 loc) 1.61 kB
import * as i0 from "@angular/core"; export interface FuTableExpandRowTemplateContext<T extends object> { /** The current row object */ $implicit: T; /** Row index in the rendered table */ index: number; /** Current search term */ searchTerm: string; } /** * Defines a custom expand-row template for a `fu-table`. * * The template context exposes: * - `row` – the current row data * - `index` – row index * - `searchTerm` – current search term * * ## Typing * To enable strong typing for `row`, provide the table data using `rowOf`. * This is used only for type inference and does not affect rendering. * * Usage: * ```html * <ng-template fuTableExpandRow let-row let-index="index"> * {{ row.name }} {{row.age}} * </ng-template> * ``` * * If `rowOf` is omitted, `row` will be typed as `any`. */ export declare class FuTableExpandRowTemplateDirective<T extends object> { /** * Provides typing context for the expand row template. * Used only for type inference – not consumed at runtime. */ of: import("@angular/core").InputSignal<T[] | null>; static ngTemplateContextGuard<TContext extends object>(_dir: FuTableExpandRowTemplateDirective<TContext>, ctx: unknown): ctx is FuTableExpandRowTemplateContext<TContext>; static ɵfac: i0.ɵɵFactoryDeclaration<FuTableExpandRowTemplateDirective<any>, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<FuTableExpandRowTemplateDirective<any>, "[fuTableExpandRow]", never, { "of": { "alias": "rowOf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; }