diff --git a/public/app.js b/public/app.js index bc9bb55..77da623 100644 --- a/public/app.js +++ b/public/app.js @@ -502,6 +502,16 @@ async function selectTable(schema, tableName) { field: col.COLUMN_NAME, headerSort: true, // ✅ Явно включаем сортировку sorter: sorterType, // ✅ Тип сортировщика для отображения стрелок + // ✅ Форматтер для чисел (разделитель тысяч, запятая для дробной части) + ...(sorterType === "number" && { + formatter: function(cell) { + const value = cell.getValue(); + if (value === null || value === undefined || value === '') return ''; + const num = parseFloat(value); + if (isNaN(num)) return value; + return num.toLocaleString('ru-RU'); + } + }), // ✅ Добавляем тултип для заголовка headerTooltip: function(e, column) { const comment = col.COLUMN_COMMENT;