Skip to content

Commit

Permalink
added decimalSymbol and thousandsSeparator to number edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenMasterJacob20011 committed Jul 26, 2024
1 parent 34e777b commit ee12658
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions src/components/number/editForm/Number.edit.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,44 @@ 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.'
},
{
type: 'checkbox',
input: true,
weight: 90,
weight: 110,
key: 'requireDecimal',
label: 'Require Decimal',
tooltip: 'Always show decimals, even if trailing zeros.'
Expand Down

0 comments on commit ee12658

Please sign in to comment.