Namespace sap.viz.ui5.api.env.FormatModule: sap/viz/ui5/api/env/Format
Provides methods set global formatter for VizFrame.
As Format
is a static class, a jQuery.sap.require("sap.viz.ui5.api.env.Format");
statement must be explicitly executed before the class can be used. Example:
jQuery.sap.require("sap.viz.ui5.api.env.Format");
Since: 1.24.0.
Method Summary
Method Detail
sap.viz.ui5.api.env.Format.numericFormatter(formatter): sap.viz.ui5.api.env.Format
Customize the global numeric formatter. If you set a formatter, it will replace the existing formatter. This function will take effect globally.
Example:
var customerFormatter = { format : function(value, pattern) { // add your codes here to convert number value to formatted string // according to the pattern string return formattedString; } }; sap.viz.ui5.api.env.Format.numericFormatter(customerFormatter);
Parameters:
{function} | formatter |
Returns:
{sap.viz.ui5.api.env.Format} |