Home > OS >  Custom icon with a src of a folder in the project SAPUI5
Custom icon with a src of a folder in the project SAPUI5

Time:10-25

I want another icon that the icons that offer sap. I created a folder "images" with the image of the icon that I want (svg ang png)

I'm trying to do like this but doesn't work.

<core:Icon src="images/capsule.png" visible="{= ${Chora} === true}"></core:Icon>

Is possible use custom icons?

CodePudding user response:

You can use sap.m.Image:

    <Image src="images/capsule.png" 
           width="16px" height="16px"
           visible="{Chora}"/>

16px is a common Icon size; you can also use a different size, of course.

  • Related