@trudb/tru-common-lib 0.2.174 → 0.2.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6328,12 +6328,15 @@ class TruDataGridClipboard {
|
|
|
6328
6328
|
this.uiNotification = uiNotification;
|
|
6329
6329
|
}
|
|
6330
6330
|
formatCellValue = (controlConfig, propertyConfig, entity, value) => {
|
|
6331
|
+
let controlType = propertyConfig.choices;
|
|
6331
6332
|
if (value === null || typeof value === 'undefined')
|
|
6332
6333
|
return '';
|
|
6333
6334
|
if (propertyConfig.typeName === 'rich-text-unbounded')
|
|
6334
6335
|
return this.util.htmlToPlainText(value);
|
|
6335
6336
|
else if (propertyConfig.typeName === 'foreign-key' || propertyConfig.typeName === 'user-foreign-key')
|
|
6336
6337
|
return this.formatter.excelFormula(propertyConfig.formatter(controlConfig).hid(entity));
|
|
6338
|
+
else if (propertyConfig.typeName === 'text-choices')
|
|
6339
|
+
return this.formatter.excelFormula(propertyConfig.choices[propertyConfig.formatter(controlConfig)]);
|
|
6337
6340
|
else
|
|
6338
6341
|
return this.formatter.excelFormula(propertyConfig.formatter(controlConfig));
|
|
6339
6342
|
};
|