loio |
---|
35cbd6c6694a45f7bdbbe557f0107d63 |
view on: demo kit nightly build | demo kit latest release
For a complete list of all formatter classes, see API Reference: sap.ui.model.Type
.
- Date Format
Thesap.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
Thesap.ui.core.format.NumberFormat
class can be used to parse a string representing a number (float or integer) into a JavaScriptnumber
and vice versa (also known asformat
). - File Size Format
Thesap.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 insap.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