enum sap.m.ImageMode

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

Determines how the source image is used on the output DOM element.


Properties Overview

Node Description
sap.m.ImageMode.Background

The image is rendered with 'span' tag and the 'src' property is set to the 'background-image' CSS style on the output DOM element

sap.m.ImageMode.Image

The image is rendered with 'img' tag and the 'src' property is set to the src attribute on the output DOM element.