mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [AAE-7856] Show variables in table * Exclude flaky tests * Revert "Exclude flaky tests" This reverts commit 6ac24cc14a90d7b494fbc4dcc72e073e83a46457.
23 lines
568 B
TypeScript
23 lines
568 B
TypeScript
import { DataColumn } from '../datatable/data/data-column.model';
|
|
|
|
export const getDataColumnMock = <T = unknown>(column: Partial<DataColumn<T>> = {}): DataColumn<T> => ({
|
|
id: 'columnId',
|
|
key: 'key',
|
|
type: 'text',
|
|
format: 'format',
|
|
sortable: false,
|
|
title: 'title',
|
|
srTitle: 'srTitle',
|
|
cssClass: 'cssClass',
|
|
template: undefined,
|
|
copyContent: false,
|
|
editable: false,
|
|
focus: false,
|
|
sortingKey: 'sortingKey',
|
|
header: undefined,
|
|
draggable: false,
|
|
isHidden: false,
|
|
customData: undefined,
|
|
...column
|
|
});
|