Namespace sap.m.ImageHelperModule: sap/m/library
Helper for Images.
Since: 1.12.
Method Summary
getImageControl(sImgId, oImageControl, oParent, mProperties, aCssClassesToAdd, aCssClassesToRemove)Creates or updates an image control.
Method Detail
getImageControl(sImgId, oImageControl, oParent, mProperties, aCssClassesToAdd, aCssClassesToRemove)
Creates or updates an image control.
Parameters:
{string} | sImgId | id of the image to be dealt with. |
{sap.m.Image} | oImageControl | the image to update. If undefined, a new image will be created. |
{sap.ui.core.Control} | oParent | oImageControl's parentControl. |
{Map} | mProperties | map object that contains key value pairs if image propeties. The 'src' property MUST be contained. Also the map's keys must be names of image properties |
{Array} | aCssClassesToAdd | array of css classes which will be added if the image needs to be created. |
{Array} | aCssClassesToRemove | all css clases that oImageControl has and which are contained in this array are removed bevore adding the css classes listed in aCssClassesToAdd. |