UNPKG

1.85 kBTypeScriptView Raw
1import { ElementRef, OnDestroy } from '@angular/core';
2import { NbFooterRowComponent, NbHeaderRowComponent, NbRowComponent } from '../cdk/table/row';
3import * as i0 from "@angular/core";
4export declare const NB_ROW_DOUBLE_CLICK_DELAY: number;
5/**
6 * Cells container. Adds the right class and role.
7 */
8export declare class NbTreeGridRowComponent extends NbRowComponent implements OnDestroy {
9 elementRef: ElementRef<HTMLElement>;
10 private readonly doubleClick$;
11 private readonly tree;
12 /**
13 * Time to wait for second click to expand row deeply.
14 * 200ms by default.
15 */
16 doubleClickDelay: number;
17 /**
18 * Toggle row on click. Enabled by default.
19 */
20 clickToToggle: boolean;
21 toggleIfEnabledNode(): void;
22 toggleIfEnabledNodeDeep(): void;
23 constructor(tree: any, elementRef: ElementRef<HTMLElement>);
24 ngOnDestroy(): void;
25 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridRowComponent, never>;
26 static ɵcmp: i0.ɵɵComponentDeclaration<NbTreeGridRowComponent, "tr[nbTreeGridRow]", never, { "doubleClickDelay": { "alias": "doubleClickDelay"; "required": false; }; "clickToToggle": { "alias": "clickToToggle"; "required": false; }; }, {}, never, never, false, never>;
27}
28export declare class NbTreeGridHeaderRowComponent extends NbHeaderRowComponent {
29 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridHeaderRowComponent, never>;
30 static ɵcmp: i0.ɵɵComponentDeclaration<NbTreeGridHeaderRowComponent, "tr[nbTreeGridHeaderRow]", never, {}, {}, never, never, false, never>;
31}
32export declare class NbTreeGridFooterRowComponent extends NbFooterRowComponent {
33 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridFooterRowComponent, never>;
34 static ɵcmp: i0.ɵɵComponentDeclaration<NbTreeGridFooterRowComponent, "tr[nbTreeGridFooterRow]", never, {}, {}, never, never, false, never>;
35}