Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.59 KB

Formatter_Classes_35cbd6c.md

File metadata and controls

35 lines (27 loc) · 2.59 KB
loio
35cbd6c6694a45f7bdbbe557f0107d63

Formatter Classes

For a complete list of all formatter classes, see API Reference: sap.ui.model.Type.

  • Date Format
    The sap.ui.core.format.DateFormat class can be used to parse a string representing a date, time, or the combination of date and time into a JavaScript date object and vice versa (also known as format).
  • Number Format
    The sap.ui.core.format.NumberFormat class can be used to parse a string representing a number (float or integer) into a JavaScript number and vice versa (also known as format).
  • File Size Format
    The sap.ui.core.format.FileSizeFormat class can be used to format a number into a string which contains both the number and the most appropriate size unit. It supports all parameters defined in sap.ui.core.format.NumberFormat. It can also parse a file size string with or without unit into a number which represents the same size in unit byte.
  • Unit Formatting
    OpenUI5 supports the formatting and parsing of units. These unit formats are by default taken from the CLDR. Besides the default units defined in the CLDR, you can also define custom units.
  • Currency Formatting