class sap.ui.model.type.Float

Control sample: sap.ui.model.type.Float
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/type/Float
Application Component: CA-UI5-COR

This class represents float simple types.


Constructor

Constructor for a Float type.

new sap.ui.model.type.Float(oFormatOptions?, oConstraints?)
Param Type Default Value Description
oFormatOptions? object

Formatting options. For a list of all available options, see NumberFormat.

preserveDecimals? boolean true

By default decimals are preserved, unless oFormatOptions.style is given as "short" or "long"; since 1.89.0

source? object

Additional set of format options to be used if the property in the model is not of type string and needs formatting as well. If an empty object is given, the grouping is disabled and a dot is used as decimal separator.

oConstraints? object

Value constraints

minimum? float

Smallest value allowed for this type

maximum? float

Largest value allowed for this type


Methods Overview

Method Description
sap.ui.model.type.Float.extend

Creates a new subclass of class sap.ui.model.type.Float with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend.

sap.ui.model.type.Float.getMetadata

Returns a metadata object for class sap.ui.model.type.Float.

sap.ui.model.type.Float.extend

Creates a new subclass of class sap.ui.model.type.Float with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.model.type.Float.getMetadata

Returns a metadata object for class sap.ui.model.type.Float.