namespace sap.m.ImageHelper

Control sample: sap.m.ImageHelper
Visiblity: protected
Available since: N/A
Module: sap/m/library
Application Component: CA-UI5-CTR

Helper for Images.


Nodes Overview

Node Description

Methods Overview

Method Description
sap.m.ImageHelper.getImageControl

Creates or updates an image control.

sap.m.ImageHelper.getImageControl

Creates or updates an image control.

Param Type DefaultValue Description
sImgId string

UD of the image to be dealt with.

oImageControl sap.m.Image

The image to update. If undefined, a new image will be created.

oParent sap.ui.core.Control

oImageControl's parentControl.

mProperties object

Settings for the image control; the src property MUST be contained; the keys of the object must be valid names of image settings

aCssClassesToAdd string[]

Array of CSS classes which will be added if the image needs to be created.

aCssClassesToRemove string[]

All CSS classes that oImageControl has and which are contained in this array are removed before adding the CSS classes listed in aCssClassesToAdd.