From ee126588c4501c9d896b0e7fa48c22683724257a Mon Sep 17 00:00:00 2001 From: ZenMasterJacob20011 Date: Fri, 26 Jul 2024 14:44:17 -0500 Subject: [PATCH] added decimalSymbol and thousandsSeparator to number edit form --- .../number/editForm/Number.edit.data.js | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/components/number/editForm/Number.edit.data.js b/src/components/number/editForm/Number.edit.data.js index 1c937e491b..060b8e35ef 100644 --- a/src/components/number/editForm/Number.edit.data.js +++ b/src/components/number/editForm/Number.edit.data.js @@ -8,9 +8,36 @@ export default [ tooltip: 'Separate thousands by local delimiter.' }, { - type: 'number', + type: "textfield", input: true, weight: 80, + key: "thousandsSeparator", + label: "Thousands Separator", + conditional: { + show: true, + conjunction: "all", + conditions: [ + { + component: "delimiter", + operator: "isEqual", + value: true + } + ] + }, + defaultValue: "," + }, + { + type: "textfield", + input: true, + weight: 90, + key: "decimalSymbol", + label: "Decimal Symbol", + defaultValue: "." + }, + { + type: 'number', + input: true, + weight: 100, key: 'decimalLimit', label: 'Decimal Places', tooltip: 'The maximum number of decimal places.' @@ -18,7 +45,7 @@ export default [ { type: 'checkbox', input: true, - weight: 90, + weight: 110, key: 'requireDecimal', label: 'Require Decimal', tooltip: 'Always show decimals, even if trailing zeros.'