@swimlane/ngx-datatable
Version:
ngx-datatable is an Angular table grid component for presenting large and complex data.
33 lines (32 loc) • 1.49 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { SelectionType } from '../../types/selection.type';
import * as i0 from "@angular/core";
export interface Model {
type: string;
event: MouseEvent | KeyboardEvent;
row: any;
rowElement: any;
cellElement: any;
cellIndex: number;
}
export declare class DataTableSelectionComponent {
rows: any[];
selected: any[];
selectEnabled: boolean;
selectionType: SelectionType;
rowIdentity: any;
selectCheck: any;
activate: EventEmitter<any>;
select: EventEmitter<any>;
prevIndex: number;
selectRow(event: KeyboardEvent | MouseEvent, index: number, row: any): void;
onActivate(model: Model, index: number): void;
onKeyboardFocus(model: Model): void;
focusRow(rowElement: any, keyCode: number): void;
getPrevNextRow(rowElement: any, keyCode: number): any;
focusCell(cellElement: any, rowElement: any, keyCode: number, cellIndex: number): void;
getRowSelected(row: any): boolean;
getRowSelectedIdx(row: any, selected: any[]): number;
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableSelectionComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableSelectionComponent, "datatable-selection", never, { "rows": "rows"; "selected": "selected"; "selectEnabled": "selectEnabled"; "selectionType": "selectionType"; "rowIdentity": "rowIdentity"; "selectCheck": "selectCheck"; }, { "activate": "activate"; "select": "select"; }, never, ["*"]>;
}