Integrating datatable into document list (wip)

This commit is contained in:
Denys Vuika
2016-07-05 09:30:28 +01:00
parent b02a465f27
commit e3924fdaa3
7 changed files with 320 additions and 18 deletions

View File

@@ -16,7 +16,6 @@
*/
export interface DataTableAdapter {
getRows(): Array<DataRow>;
setRows(rows: Array<DataRow>): void;
getColumns(): Array<DataColumn>;
@@ -25,19 +24,15 @@ export interface DataTableAdapter {
getSorting(): DataSorting;
setSorting(sorting: DataSorting): void;
sort(key?: string, direction?: string): void;
}
export interface DataRow {
isSelected: boolean;
hasValue(key: string): boolean;
getValue(key: string): any;
}
export interface DataColumn {
key: string;
type: string; // text|image|date
format?: string;
@@ -45,14 +40,16 @@ export interface DataColumn {
title?: string;
srTitle?: string;
cssClass?: string;
}
export class DataSorting {
constructor(
public key?: string,
public direction?: string) {
}
}
export interface DataRowEvent {
value?: DataRow;
event: Event;
}