JqGrid custom formatter with custom parameter
问题 I have a question about custom formatters. What I try to achieve is a currencyFormatter just for the amount with Locale sent by the server, when locale is not define or supported fall back to British English. Something like this: function currencyFmatter(cellvalue, options, rowdata) { return new Intl.NumberFormat([locale, "en-GB"], {minimumFractionDigits: 2, maximumFractionDigits: 2}).format(cellvalue); } My problem is how to pass my variable locale to the formatter, I’m pretty sure it has to