Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added decimalSymbol and thousandsSeparator to number edit form #5713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading