Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Custom icon on Tile in Launchpad

$
0
0

Hi Vijay,

 

This query was solve by another member of the community in a different discussion, Please refer to this SCN discussion.

To Change icon in Fiori Launchpad | SCN

 

 

In order to be able to use you own Font you have to:

1. Create a folder in the CSS folder called: fonts

2. Upload your TTF and EOT files there

3. Add in the css:

@font-face { 

font-family: 'MY-icons'; 

src: url('fonts/My-Library.ttf'), 

url('fonts/My-Library.eot');

font-weight: normal; 

font-style: normal; 

4. Add the icons you need in the JS file:

sap.ui.core.IconPool.addIcon("icon-name", "my-icons", "My-icons", "e65c");

the uri to your icon will be: sap-icon://my-icons/icon-name

and use the setIcon method to set it to a button or somewhere else.

 

 

Regards,

John


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>