returns formatting function
config | object | an object of formatting configuration options |
function | the formatting function |
//a single datatable column
columns:[
{
id:"votes",
format:webix.Number.numToStr({
groupDelimiter:" ",
groupSize:3,
decimalDelimiter:",",
decimalSize:2
})
}
]
The config object can contain the following attributes:
var formatFunc = webix.Number.numToStr({ decimalSize:2, decimalDelimiter:","});
formatFunc(10000.9990);
The method doesn't format number, but returns a function which can be used for formatting