class sap.ui.core.format.ListFormat

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Extends:
Module: sap/ui/core/format/ListFormat
Application Component: CA-UI5-COR

The ListFormat is a static class for formatting and parsing an array of strings in a locale-sensitive manner according to a set of format options.


Constructor


Methods Overview

Method Description
format

Formats a list according to the given format options.

sap.ui.core.format.ListFormat.getInstance

Get an instance of the ListFormat which can be used for formatting.

parse

Parses a given list string into an array.

format

Formats a list according to the given format options.

Param Type DefaultValue Description
aList array

The value to format

sap.ui.core.format.ListFormat.getInstance

Get an instance of the ListFormat which can be used for formatting.

Param Type DefaultValue Description
oFormatOptions object

Object which defines the format options

oLocale sap.ui.core.Locale

Locale to get the formatter for

parse

Parses a given list string into an array.

Param Type DefaultValue Description
sValue string

String value to be parsed