mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7819] Change column order - enable drag and drop for datatable - [1/3] (#7567)
* [AAE-7819] Enable drag and drop for datatable [1/3] * [AAE-7819] Change column order - load and save columns order preferences for PROCESSES - [2/3] (#7568) * [AAE-7819] Load and save column order preferences for processes * [AAE-7819] Load and save column order preferences for tasks [3/3] (#7569) * fix css * fix icon module import * Fix unit tests * Fix test * Fix e2e * Fix C279927
This commit is contained in:
@@ -20,7 +20,7 @@ import { DataColumn, DataColumnType } from './data-column.model';
|
||||
|
||||
// Simple implementation of the DataColumn interface.
|
||||
export class ObjectDataColumn implements DataColumn {
|
||||
|
||||
id?: string;
|
||||
key: string;
|
||||
type: DataColumnType;
|
||||
format: string;
|
||||
@@ -33,8 +33,10 @@ export class ObjectDataColumn implements DataColumn {
|
||||
focus?: boolean;
|
||||
sortingKey?: string;
|
||||
header?: TemplateRef<any>;
|
||||
draggable: boolean;
|
||||
|
||||
constructor(input: any) {
|
||||
this.id = input.id ?? '';
|
||||
this.key = input.key;
|
||||
this.type = input.type || 'text';
|
||||
this.format = input.format;
|
||||
@@ -47,5 +49,6 @@ export class ObjectDataColumn implements DataColumn {
|
||||
this.focus = input.focus;
|
||||
this.sortingKey = input.sortingKey;
|
||||
this.header = input.header;
|
||||
this.draggable = input.draggable ?? false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user