class sap.ui.model.StaticBinding

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/StaticBinding
Application Component: CA-UI5-COR

The StaticBinding allows to define static values within a sap.ui.model.CompositeBinding. It behaves like a property binding but always returns the value that is stored in the binding itself. The binding does not have a sap.ui.model.Context, a sap.ui.model.Model or a path.


Constructor

Constructor for StaticBinding

new sap.ui.model.StaticBinding(vValue)
Param Type Default Value Description
vValue any

The static value of this binding


Methods Overview

Method Description
sap.ui.model.StaticBinding.extend

Creates a new subclass of class sap.ui.model.StaticBinding 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.PropertyBinding.extend.

sap.ui.model.StaticBinding.getMetadata

Returns a metadata object for class sap.ui.model.StaticBinding.

sap.ui.model.StaticBinding.extend

Creates a new subclass of class sap.ui.model.StaticBinding 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.PropertyBinding.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.StaticBinding.getMetadata

Returns a metadata object for class sap.ui.model.StaticBinding.