namespace sap.ui.core.ValueStateSupport

Visiblity: public
Available since: N/A
Module: sap/ui/core/ValueStateSupport
Application Component: CA-UI5-COR

Helper functionality for value state support.


Nodes Overview

Node Description

Methods Overview

Method Description
sap.ui.core.ValueStateSupport.enrichTooltip

Appends a generic success, warning or error message to the given tooltip text if the given Element has a property "valueState" with one of these three states.

sap.ui.core.ValueStateSupport.formatValueState

Returns a ValueState object based on the given integer value

0 : ValueState.None 1 : ValueState.Warning 2 : ValueState.Success 3 : ValueState.Error 4 : ValueState.Information

sap.ui.core.ValueStateSupport.getAdditionalText

Returns a generic success, warning or error message if the given Element has a property "valueState" with one of these three states or the given ValueState represents one of these states.

sap.ui.core.ValueStateSupport.enrichTooltip

Appends a generic success, warning or error message to the given tooltip text if the given Element has a property "valueState" with one of these three states.

Param Type DefaultValue Description
oElement sap.ui.core.Element

the Element of which the tooltip needs to be modified

sTooltipText string

the original tooltip text (may be null)

sap.ui.core.ValueStateSupport.formatValueState

Returns a ValueState object based on the given integer value

0 : ValueState.None 1 : ValueState.Warning 2 : ValueState.Success 3 : ValueState.Error 4 : ValueState.Information

Param Type DefaultValue Description
iState int

the state as an integer

sap.ui.core.ValueStateSupport.getAdditionalText

Returns a generic success, warning or error message if the given Element has a property "valueState" with one of these three states or the given ValueState represents one of these states.

Param Type DefaultValue Description
vValue sap.ui.core.Element sap.ui.core.ValueState

the Element of which the valueState needs to be checked, or the ValueState explicitly