mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-22900: update ObjectDataTableAdapter to support server and client… (#10423)
* AAE-22900: update ObjectDataTableAdapter to support server and client sorting modes --------- Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
This commit is contained in:
@@ -50,4 +50,9 @@ describe('ProcessListDatatableAdapter', () => {
|
||||
|
||||
expect(adapter.getColumnType(row, column)).toBe('number');
|
||||
});
|
||||
|
||||
it('should initialize constructor with server sortingMode', () => {
|
||||
const adapter = new ProcessListDatatableAdapter([], []);
|
||||
expect(adapter.sortingMode).toBe('server');
|
||||
});
|
||||
});
|
||||
|
@@ -21,7 +21,7 @@ import { ProcessInstanceCloudListViewModel } from '../models/perocess-instance-c
|
||||
|
||||
export class ProcessListDatatableAdapter extends ObjectDataTableAdapter {
|
||||
constructor(data: ProcessInstanceCloudListViewModel[], schema: DataColumn<ProcessListDataColumnCustomData>[]) {
|
||||
super(data, schema);
|
||||
super(data, schema, 'server');
|
||||
}
|
||||
|
||||
getColumnType(row: DataRow, col: DataColumn<ProcessListDataColumnCustomData>): string {
|
||||
|
@@ -60,4 +60,9 @@ describe('TasksListDatatableAdapter', () => {
|
||||
|
||||
expect(adapter.getColumnType(row, column)).toBe('number');
|
||||
});
|
||||
|
||||
it('should initialize constructor with server sortingMode', () => {
|
||||
const adapter = new TasksListDatatableAdapter([], []);
|
||||
expect(adapter.sortingMode).toBe('server');
|
||||
});
|
||||
});
|
||||
|
@@ -21,7 +21,7 @@ import { TaskInstanceCloudListViewModel } from '../models/task-cloud-view.model'
|
||||
|
||||
export class TasksListDatatableAdapter extends ObjectDataTableAdapter {
|
||||
constructor(data: TaskInstanceCloudListViewModel[], schema: DataColumn<ProcessListDataColumnCustomData>[]) {
|
||||
super(data, schema);
|
||||
super(data, schema, 'server');
|
||||
}
|
||||
|
||||
getColumnType(row: DataRow, col: DataColumn<ProcessListDataColumnCustomData>): string {
|
||||
|
Reference in New Issue
Block a user