getConfig
returns an object with configuration options necessary for formatting
object getConfig(string format);
Parameters
format | string | the number format set as a string |
Returns
object | an object with formatting configuration options |
Details
The returned config object can contain the following attributes:
- decimalSize - the number of decimal digits in the float number. By default, 2;
- groupSize - the number of digits in a group. By default, 3;
- decimalDelimiter - a char which separates the decimal part in the float number. By default, ".";
- groupDelimiter - a char which separates groups of digits. By default, ",".
var cfg = webix.Number.getConfig("1'111.00");
// ->{decimalSize: 2, groupSize: 3, decimalDelimiter: ".", groupDelimiter: "'"}
See also
Back to top