JS api formatValue properties

0
Hi, The API docs page for mx.parser states that formatValue accepts a third parameter, an object that can specify additional formatting options. But the actual names of the possible settings are not described. The examples show the datePattern option, but the options for decimals are not shown in the examples. I need the names of the decimal settings. Can anyone please shine a light on this? Edit: Thanks to Mitchel my widget works now. However, it should be included on the documentation pages for Mx5 and Mx6. Changing the example would probably be sufficient. Thanks in advance.
asked
1 answers
1

This is the code as it is stated in MXUI:

switch (type.toLowerCase()) {
case "decimal":
case "float":
    return _118c(new Big(value), !! props.groups, "places" in props && props.places >= 0 ? props.places : -1, _119d);
case "currency":
    return _118c(new Big(value), !! props.groups, "places" in props && props.places >= 0 ? props.places : 2, _119d);
case "autonumber":
case "integer":
case "long":
    return _118c(new Big(value), !! props.groups, props.places || 0, _119d);
case "datetime":
    return _1176(new Date(value), _116f.mixin({
        selector: "date"
    }, props), _119d);
case "boolean":
    return mx.ui.translate("mxui.common", value);
default:
    return value;

}

_118c is the number formatter, as far as I can read from this code you can pass two parameters groups and places

answered