Class sap.ui.vbm.ResourceModule: sap/ui/vbm/Resource
A resource is a Base64 encoded representation of an image binary that can be referenced by name in e.g. a Spot element. When images are specified as a string resource it is guaranteed that the control can access the bits in the image. If just a URL to the resource is given it is loaded and converted to a Base64 encoded binary. This happens asynchronously and it may require several re-renderings of the control until all resource show up correctly.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
name
. Name of the resource. The name should be always used when a resource is referenced.
{string} | Value of property name |
src
. URL to an image. It is important that the image data is readable fom the visual business control. Therefore e.g. images coming from a local drive or cross domains are not allowed. The preferred way is to use the Base64 encoded data provided using the value property.
Default value is .
{string} | Value of property src |
value
. Value of the resource. Base64 endode binary.
{string} | Value of property value |
name
. Name of the resource. The name should be always used when a resource is referenced.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sName | New value for property name |
{sap.ui.vbm.Resource} | Reference to this in order to allow method chaining |
src
. URL to an image. It is important that the image data is readable fom the visual business control. Therefore e.g. images coming from a local drive or cross domains are not allowed. The preferred way is to use the Base64 encoded data provided using the value property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sSrc | New value for property src |
{sap.ui.vbm.Resource} | Reference to this in order to allow method chaining |
value
. Value of the resource. Base64 endode binary.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sValue | New value for property value |
{sap.ui.vbm.Resource} | Reference to this in order to allow method chaining |