Skip to content

Commit 039ca62

Browse files
fix(bug): Value format column subtotal issue (#67)
When using a pivot table with 2–3 levels and enabling both COL and ROW SUBTOTALS in edit settings, the value format is not being respected in the subtotal columns. Related to #64
1 parent cdf0c8d commit 039ca62

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/vis_table_plugin.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,14 +1837,7 @@ class VisPluginTableModel {
18371837
});
18381838
row.data[subtotalColumn.id] = new DataCell({
18391839
value: subtotal_value,
1840-
rendered:
1841-
subtotalColumn.modelField.value_format === ''
1842-
? subtotal_value.toString()
1843-
: this.formatCellValue(
1844-
subtotalColumn.modelField.value_format,
1845-
subtotal_value
1846-
),
1847-
// rendered: this.formatCellValue(subtotalColumn.modelField.value_format, subtotal_value),
1840+
rendered:this.formatCellValue(subtotalColumn.modelField.value_format, subtotal_value),
18481841
cell_style: cell_style,
18491842
colid: subtotalColumn.id,
18501843
rowid: row.id,

0 commit comments

Comments
 (0)