Sunteți pe pagina 1din 7

No Really I Swear This is a Different Document

For Reals

Seriously

Stack Overflow

1. About
2. Products
3. For Teams

1. Log in  Sign up

2.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and
our Terms of Service.
1. Home
2.
1. PUBLIC
2. Stack Overflow
3. Tags
4. Users
5. FIND A JOB
6. Jobs
7. Companies
3.
1. TEAMS

What’s this?

2.
Free 30 Day Trial

where are the SAPUI5 icons stored?


Ask Question

Asked 3 years, 5 months ago

Active 3 years, 5 months ago

Viewed 4k times

Report this ad

2
I have an SAPUI5 based application in which I'm setting the button icons using the url to the icon
under the SAP site https://sapui5.hana.ondemand.com/iconExplorer.html.
sample code

<Button id="excel" text="Excel" icon="sap-icon://excel-attachment" type="Accept"


enabled="false" press="onDataExport"/>
Now we have to migrate to a different environment in which we cannot use these url's. We
downloaded the SAPUI5 api and reference it remotely within the app. I looked under the folders but I
cannot find where these icons are stored. Does anyone know where I can find the sap icons within the
api folder? Assuming they are stored in there. If not, is there a way to get these icons so I can store
them locally?

sapui5

share  improve this question  follow 


asked Mar 8 '17 at 14:34

polaris

3011010 silver badges2626 bronze badges

add a comment

2 Answers
Active OldestVotes

Yes. they are fonts


at https://sapui5.hana.ondemand.com/resources/sap/ui/core/themes/base/fonts/SAP-icons.ttf
And if you check https://sapui5.hana.ondemand.com/resources/sap/ui/core/IconPool-dbg.js, you can
see the mapping between icon name and a numeric value which represents the char code of an icon in
the 'SAP-icons' font.
You can also check this blog for the UI5 Icon mapping logic and quote here about Fonts.
"Fonts are a vector representation of images instead of binaries like GIF, JPEG or PNG. This means
that they are able to be sized to any dimension without the loss of quality."

Thank you!

share  improve this answer  follow 


answered Mar 8 '17 at 15:34
Haojie

5,33611 gold badge1212 silver badges1414 bronze badges

 Thanks, that was very useful – polaris Mar 8 '17 at 16:51


add a comment

icons in SAPUI5 are stored as a font: the name of the font is SAP-icons.ttf. If you install the font on
your system, you can check the character map and see the different icons.

share  improve this answer  follow 


answered Mar 8 '17 at 15:24

Arnaud

6166 bronze badges

add a comment

Your Answer
















Sign up or log in
 Sign up using Google

 Sign up using Facebook

 Sign up using Email and Password

Post as a guest
Name

Email
Required, but never shown

Post Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged sapui5 or ask your own
question.
The Overflow Blog

 The Overflow #36: Community-a-thon


 Podcast 265: the tiny open-source pillar holding up the entire internet
Featured on Meta

 New post formatting


 Hot Meta Posts: Allow for removal by moderators, and thoughts about future…
 New Features on Stack Overflow Jobs: Company Updates, Follow, and Ads
Report this ad
tastyworks
Financial Services

We have great benefits!


 Dog-Friendly Office
 Performance Bonuses
 Flexible Spending Account (FSA)
 Health, Dental, and Vision Coverage
 + 5 more benefits

Learn more

Linked

sap.m.Shell: sap icon as homeIcon possible?

Related

Migrate sapui5 application to openui5

SAPUI5 IconTabBar/IconTabFilter: Trigger Icon Tab Select

SAPUI5 icon doesn't display

To style button with a standard SAPUI5 icon


2

How to include another SAP Cloud project resource into deployed SAPUI5 app?

What Is The Best Practice For Where to Store Absolute URIs in SAPUI5?

SAPUI5 ObjectListItem icon not aligned

Hot Network Questions


 What tests to automate in a full stack web application? API vs UI
 How much energy is lost with a gravel tire compared with a road tire?
 What impact will the de-orbiting of thousands of satellites have on the atmosphere?
 View POSIX draft standards
 How to remove a lock ring if there is no cassette?
more hot questions

 Question feed

https://stackoverflo

STACK OVERFLOW
 Questions
 Jobs
 Developer Jobs Directory
 Salary Calculator
 Help
 Mobile
 Disable Responsiveness
PRODUCTS
 Teams
 Talent
 Advertising
 Enterprise
COMPANY
 About
 Press
 Work Here
 Legal
 Privacy Policy
 Contact Us
STACK EXCHANGE
NETWORK
 Technology
 Life / Arts
 Culture / Recreation
 Science
 Other
 Blog
 Facebook
 Twitter
 LinkedIn
 Instagram
site design / logo © 2020 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2020.9.1.37532
 

S-ar putea să vă placă și