We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I have encountered a problem with decimal separators.
in us format the decimal separator is "." but in italy the separator is "," I tried this configuration
import { w2utils } from "/w2ui-2.0/w2ui-2.0.es6.min.js"
w2utils.locale({ dateFormat : "dd/mm/yyyy", timeFormat : "hh:mm", currencyPrefix : "€ ", currencySuffix : "", currencyPrecision : 2, groupSymbol : "", decimalSymbol : "," });
let win = new w2form({ "name": "win", "style": "border: 0; background-color: transparent;" "autosize": true, "fields": [ { "field": "price", "type": "money", "required": true, "html": { "label": "price" } }, ] })
but on typing the comma is accepted but the output on the filed is always with the dot
w2utils.locale({ dateFormat : "dd/mm/yyyy", timeFormat : "hh:mm", currencyPrefix : "€ ", currencySuffix : "", currencyPrecision : 2, groupSymbol : ".", decimalSymbol : "," });
does not completely accept the value of the filed
The text was updated successfully, but these errors were encountered:
can you create jsFiddle?
Sorry, something went wrong.
https://jsfiddle.net/mquagliarella/hwtrq1bs/94/
ignore decimalSymbol = "," and if i use groupSymbol dasn't work
One Addition. The given settings, especially these two lines
w2utils.settings.groupSymbol = "."; w2utils.settings.decimalSymbol = ",";
will also break the search of all "int" and "float" fields.
No branches or pull requests
Hi I have encountered a problem with decimal separators.
in us format the decimal separator is "." but in italy the separator is "," I tried this configuration
import { w2utils } from "/w2ui-2.0/w2ui-2.0.es6.min.js"
w2utils.locale({
dateFormat : "dd/mm/yyyy",
timeFormat : "hh:mm",
currencyPrefix : "€ ",
currencySuffix : "",
currencyPrecision : 2,
groupSymbol : "",
decimalSymbol : ","
});
let win = new w2form({
"name": "win",
"style": "border: 0; background-color: transparent;"
"autosize": true,
"fields": [
{
"field": "price",
"type": "money",
"required": true,
"html": {
"label": "price"
}
},
]
})
but on typing the comma is accepted but the output on the filed is always with the dot
w2utils.locale({
dateFormat : "dd/mm/yyyy",
timeFormat : "hh:mm",
currencyPrefix : "€ ",
currencySuffix : "",
currencyPrecision : 2,
groupSymbol : ".",
decimalSymbol : ","
});
does not completely accept the value of the filed
The text was updated successfully, but these errors were encountered: