Skip to Content
2
Aug 19, 2015 at 05:33 AM

sap.m.ComboBox not displaying icon added in sap.ui.core.ListItem

1615 Views

Hi I am new to UI5 I have written below code to display a Combo Box with List Items containing Icon and Text.

<ComboBox width="25em">

<sap.ui.core:ListItem icon="sap-icon://employee" text="{i18n>Person}" key="1"/>

<sap.ui.core:ListItem icon="sap-icon://factory" text="{i18n>Organization}" key="2"/>

</ComboBox>

I am getting text but not Icon as shown below, some one guide me if i am making any mistake.

Attachments

SCN.PNG (2.4 kB)