Please use the ITvisors version, the Synobsys version is no longer maintained, For decimal formatting it follows the model settings.
Confirmed I am using the ITvisors version; is there any way for me to customize the widget to group digits by a comma? I saw the following code in the widget … Would I modify this line of code to perform a different function? I’m sorry, I’m new to javascript.
node.innerHTML = this.formatDecimal(cellValue);
This is what I’m thinking of applying per https://blog.abelotech.com/posts/number-currency-formatting-javascript/. Then I plan to apply this function by → node.innerHTML = this.formatNumber(cellValue);
Somehow this change is not working. Still no comma but still researching.
function formatNumber(num) {
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,')
}