Custom thousands separator formatting in grid cell values

This commit is contained in:
Stela Augustinova
2025-12-03 13:53:47 +01:00
parent c1f216c7c7
commit 78e838f2f0
2 changed files with 18 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import _ from 'lodash';
import { getBoolSettingsValue } from '../settings/settingsTools';
import { getStringSettingsValue } from '../settings/settingsTools';
import { stringifyCellValue } from 'dbgate-tools';
export let rowData;
@@ -13,7 +13,7 @@
value,
'gridCellIntent',
editorTypes,
{ useThousandsSeparator: getBoolSettingsValue('dataGrid.thousandsSeparator', false) },
{ thousandsSeparator: getStringSettingsValue('dataGrid.thousandsSeparatorChar', 'system') },
jsonParsedValue
);