getConfig

returns an object with configuration options necessary for formatting

object getConfig(string format);
format
stringthe number format set as a string
objectan object with formatting configuration options
Details

The returned config object can contain the following attributes:

The current locale determines the values of the minusPosition and minusSign attributes (webix.i18n.minusPosition and webix.i18n.minusSign, respectively). 

webix.i18n.setLocale("es-ES");
 
const cfg = webix.Number.getConfig("1'111.00");
// ->{decimalSize: 2, groupSize: 3, decimalDelimiter: ".", groupDelimiter: "'",
//    minusPosition: "before", minusSign: "-", prefix: "", sufix: ""}
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.