Add info to format and ensure all custom-formatted cells are displayed as plain text

This commit is contained in:
Andrew Kingston 2025-01-30 09:58:23 +00:00
parent 4614a13abf
commit cda4784273
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View File

@ -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;
}

View File

@ -3093,7 +3093,8 @@
{
"type": "text",
"label": "Format",
"key": "format"
"key": "format",
"info": "Changing the format will display the value as plain text"
}
]
},

View File

@ -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) ||