diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts')
-rw-r--r-- | sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts new file mode 100644 index 000000000..ad50e5165 --- /dev/null +++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts @@ -0,0 +1,5 @@ +import { ColumnType, ColumnModel } from '../../../../framework/src/components/material-table'; + +export const addColumnLabels = <T>(name: string, title: string, disableFilter = true, disableSorting = true): ColumnModel<T> => { + return { property: name as keyof T, title: title, type: ColumnType.text, disableFilter: disableFilter, disableSorting: disableSorting }; +} |