@swimlane/ngx-datatable
Version:
ngx-datatable is an Angular table grid component for presenting large and complex data.
71 lines (70 loc) • 3.06 kB
TypeScript
import { EventEmitter, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { SortType } from '../../types/sort.type';
import { SelectionType } from '../../types/selection.type';
import { DataTableColumnDirective } from '../columns/column.directive';
import * as i0 from "@angular/core";
export declare class DataTableHeaderComponent implements OnDestroy {
private cd;
sortAscendingIcon: any;
sortDescendingIcon: any;
sortUnsetIcon: any;
scrollbarH: boolean;
dealsWithGroup: boolean;
targetMarkerTemplate: any;
targetMarkerContext: any;
set innerWidth(val: number);
get innerWidth(): number;
sorts: any[];
sortType: SortType;
allRowsSelected: boolean;
selectionType: SelectionType;
reorderable: boolean;
dragEventTarget: any;
set headerHeight(val: any);
get headerHeight(): any;
set columns(val: any[]);
get columns(): any[];
set offsetX(val: number);
get offsetX(): number;
sort: EventEmitter<any>;
reorder: EventEmitter<any>;
resize: EventEmitter<any>;
select: EventEmitter<any>;
columnContextmenu: EventEmitter<{
event: MouseEvent;
column: any;
}>;
_columnsByPin: any;
_columnGroupWidths: any;
_innerWidth: number;
_offsetX: number;
_columns: any[];
_headerHeight: string;
_styleByGroup: {
[prop: string]: {};
};
private destroyed;
constructor(cd: ChangeDetectorRef);
ngOnDestroy(): void;
onLongPressStart({ event, model }: {
event: any;
model: any;
}): void;
onLongPressEnd({ event, model }: {
event: any;
model: any;
}): void;
get headerWidth(): string;
trackByGroups(index: number, colGroup: any): any;
columnTrackingFn(index: number, column: any): any;
onColumnResized(width: number, column: DataTableColumnDirective): void;
onColumnReordered({ prevIndex, newIndex, model }: any): void;
onTargetChanged({ prevIndex, newIndex, initialIndex }: any): void;
getColumn(index: number): any;
onSort({ column, prevValue, newValue }: any): void;
calcNewSorts(column: any, prevValue: number, newValue: number): any[];
setStylesByGroup(): void;
calcStylesByGroup(group: string): any;
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableHeaderComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableHeaderComponent, "datatable-header", never, { "sortAscendingIcon": "sortAscendingIcon"; "sortDescendingIcon": "sortDescendingIcon"; "sortUnsetIcon": "sortUnsetIcon"; "scrollbarH": "scrollbarH"; "dealsWithGroup": "dealsWithGroup"; "targetMarkerTemplate": "targetMarkerTemplate"; "innerWidth": "innerWidth"; "sorts": "sorts"; "sortType": "sortType"; "allRowsSelected": "allRowsSelected"; "selectionType": "selectionType"; "reorderable": "reorderable"; "headerHeight": "headerHeight"; "columns": "columns"; "offsetX": "offsetX"; }, { "sort": "sort"; "reorder": "reorder"; "resize": "resize"; "select": "select"; "columnContextmenu": "columnContextmenu"; }, never, never>;
}