UNPKG

2.08 kBTypeScriptView Raw
1import { ElementRef, InjectionToken } from '@angular/core';
2import { CdkCell, CdkCellDef, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkHeaderCell, CdkHeaderCellDef } from '@angular/cdk/table';
3/**
4 * Cell definition for the nb-table.
5 * Captures the template of a column's data row cell as well as cell-specific properties.
6 */
7export declare class NbCellDefDirective extends CdkCellDef {
8}
9/**
10 * Header cell definition for the nb-table.
11 * Captures the template of a column's header cell and as well as cell-specific properties.
12 */
13export declare class NbHeaderCellDefDirective extends CdkHeaderCellDef {
14}
15/**
16 * Footer cell definition for the nb-table.
17 * Captures the template of a column's footer cell and as well as cell-specific properties.
18 */
19export declare class NbFooterCellDefDirective extends CdkFooterCellDef {
20}
21export declare const NB_SORT_HEADER_COLUMN_DEF: InjectionToken<unknown>;
22/**
23 * Column definition for the nb-table.
24 * Defines a set of cells available for a table column.
25 */
26export declare class NbColumnDefDirective extends CdkColumnDef {
27 /** Unique name for this column. */
28 get name(): string;
29 set name(value: string);
30 /** Whether this column should be sticky positioned at the start of the row */
31 sticky: boolean;
32 /** Whether this column should be sticky positioned on the end of the row */
33 get stickyEnd(): boolean;
34 set stickyEnd(value: boolean);
35}
36/** Header cell template container that adds the right classes and role. */
37export declare class NbHeaderCellDirective extends CdkHeaderCell {
38 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef<HTMLElement>);
39}
40/** Footer cell template container that adds the right classes and role. */
41export declare class NbFooterCellDirective extends CdkFooterCell {
42 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef);
43}
44/** Cell template container that adds the right classes and role. */
45export declare class NbCellDirective extends CdkCell {
46 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef<HTMLElement>);
47}