Add info to format and ensure all custom-formatted cells are displayed as plain text
This commit is contained in:
parent
4614a13abf
commit
cda4784273
|
@ -172,7 +172,7 @@
|
|||
}
|
||||
.text {
|
||||
font-size: var(--spectrum-global-dimension-font-size-75);
|
||||
color: var(--grey-6);
|
||||
color: var(--spectrum-global-color-gray-700);
|
||||
grid-column: 2 / 2;
|
||||
}
|
||||
|
||||
|
|
|
@ -3093,7 +3093,8 @@
|
|||
{
|
||||
"type": "text",
|
||||
"label": "Format",
|
||||
"key": "format"
|
||||
"key": "format",
|
||||
"info": "Changing the format will display the value as plain text"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -50,10 +50,12 @@ function getCellRendererByType(type: FieldType | "role" | undefined) {
|
|||
}
|
||||
|
||||
export const getCellRenderer = (column: UIColumn) => {
|
||||
if (column.format) {
|
||||
return TextCell
|
||||
}
|
||||
if (column.calculationType) {
|
||||
return NumberCell
|
||||
}
|
||||
|
||||
return (
|
||||
getCellRendererByType(column.schema?.cellRenderType) ||
|
||||
getCellRendererByType(column.schema?.type) ||
|
||||
|
|
Loading…
Reference in New Issue