UNPKG

1.34 kBTypeScriptView Raw
1import { OnChanges } from '@angular/core';
2import { NbColumnDefDirective } from '../cdk/table/cell';
3import * as i0 from "@angular/core";
4/**
5 * Column definition for the tree-grid.
6 * Defines a set of cells available for a table column.
7 */
8export declare class NbTreeGridColumnDefDirective extends NbColumnDefDirective implements OnChanges {
9 /**
10 * Column name
11 */
12 get name(): string;
13 set name(value: string);
14 private hideOnValue;
15 /**
16 * Amount of pixels of viewport at which column should be hidden.
17 * type number
18 */
19 get hideOn(): number | null;
20 set hideOn(value: number | null);
21 private showOnValue;
22 /**
23 * Amount of pixels of viewport at which column should be shown.
24 * type number
25 */
26 get showOn(): number | null;
27 set showOn(value: number | null);
28 ngOnChanges(): void;
29 shouldHide(width: number): boolean;
30 shouldShow(width: number): boolean;
31 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridColumnDefDirective, never>;
32 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridColumnDefDirective, "[nbTreeGridColumnDef]", never, { "name": { "alias": "nbTreeGridColumnDef"; "required": false; }; "hideOn": { "alias": "hideOn"; "required": false; }; "showOn": { "alias": "showOn"; "required": false; }; }, {}, never, never, false, never>;
33}