From 7446f23b3abc30d7c53f2eaa951742371c071171 Mon Sep 17 00:00:00 2001 From: Herbert Eiselt Date: Thu, 28 Feb 2019 15:23:42 +0100 Subject: UX extensions UX Maintenance client and further changes Change-Id: I7643661d17db5fc3d3f94b58cb42ed0be558c64f Issue-ID: SDNC-583 Signed-off-by: Herbert Eiselt --- .../framework/src/components/material-table/columnModel.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sdnr/wt/odlux/framework/src/components/material-table/columnModel.ts') diff --git a/sdnr/wt/odlux/framework/src/components/material-table/columnModel.ts b/sdnr/wt/odlux/framework/src/components/material-table/columnModel.ts index 6acea01d5..42a0bb4d8 100644 --- a/sdnr/wt/odlux/framework/src/components/material-table/columnModel.ts +++ b/sdnr/wt/odlux/framework/src/components/material-table/columnModel.ts @@ -4,17 +4,23 @@ import * as React from 'react'; export enum ColumnType { text, numeric, + boolean, custom } type CustomControl = { - rowData: TData + className?: string; + style?: React.CSSProperties; + rowData: TData; } export type ColumnModel = { title?: string; disablePadding?: boolean; width?: string | number; + className?: string; + style?: React.CSSProperties; + align?: 'inherit' | 'left' | 'center' | 'right' | 'justify'; disableSorting?: boolean; disableFilter?: boolean; } & ({ @@ -23,5 +29,9 @@ export type ColumnModel = { customControl: React.ComponentType>; } | { property: keyof TData; - type?: ColumnType.numeric | ColumnType.text; + type: ColumnType.boolean; + labels?: { "true": string, "false": string }; +} | { + property: keyof TData; + type?: ColumnType.numeric | ColumnType.text; }); \ No newline at end of file -- cgit 1.2.3-korg