When you are creating a new button and assign an icon to it, there is no way for you to know exactly what does this “add” icon look like.

Even if you use the star symbol in launchpad designer, there is still no convenient way to find this add icon.

Since all icons are listed in F4 help, there is no filter there:

Instead we can use this useful tool to find the icon you need efficiently:

SAP UI5 图标查看器
Currently there are 535 icons available.

We can easily find the icon we need by search button.

And in the right-bottom part of the page, there is an id “e000” displayed for icon “accidental-leave”. We will explain the meaning of this id in the end part of this blog.

How is icon rendered in Fiori

Originally I thought that the binary content of all icons are stored in the server side. And in the runtime when an icon is to be rendered, there is a conversion done, transferring the internal url like “sap-icon://XXX” to absolute path like “https://XXXX” which points to the icon stored in the server. However I am wrong.

         Figure: how the traditional image is displayed in Fiori

If you use the element inspection function in Chrome development tool, you will find the corresponding html element for image in the final html source code does not contain any attribute like src. Instead, it has an attribute defined by SAP which seems to have something to do with image content: data-sap-ui-icon-content.

The value of this attribute is filled by IconRenderer when the icon is to be displayed in UI. The variable oIconInfo.content stores the actual value.

Check the source code of this js file, where all the supported icons together with their icon name and icon code are hard coded.



So the icon id for icon “accidental-leave” we find in icon browser page, e000, is just its corresponding code hard coded in IconPool.js.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

SAP Fiori图标(icon)设计原理:一个可以查看 SAP UI5 所有可用图标的工具相关推荐

  1. 关于SAP Fiori用户管理资料的一个问题

    一个朋友私信我: 汪大师,请教个问题哈,你那边有没有SAP fiori 用户管理方面的资料哈,多谢多谢! 我的回答: 没有哈,Fiori是基于SAP UI5这个技术框架开发而成的web应用的UX风格, ...

  2. SAP ABAP报表依赖设计原理详解

    In SAP note 1230076 "Generation of ABAP loads: Tips for the analysis", a tool report RSDEP ...

  3. debug the very first SAP Fiori application -Jerry的第一个SAP ui5应用调试经过

    Created by Wang, Jerry, last modified on Jan 15, 2015 要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  4. SAP Fiori 应用里图标(Icon)的渲染原理和使用技巧

    这是 Jerry 2021 年的第 27 篇文章,也是汪子熙公众号总共第 298 篇原创文章. 近日,一位 SAP 合作伙伴的开发人员,向我咨询一个关于 SAP Fiori 应用里图标的使用问题. 这 ...

  5. SAP Fiori Elements 框架里 Smart Table 控件的工作原理介绍

    这是 Jerry 2021 年的第 34 篇文章,也是汪子熙公众号总共第 310 篇原创文章. Jerry 前一篇文章 深入掌握 SAP Fiori Elements 工作原理系列之二:如何给 Fio ...

  6. 深入理解 SAP Fiori Elements 工作原理系列之二:如何给 SAP Fiori Elements 应用添加自定义按钮

    这是 Jerry 2021 年的第 33 篇文章,也是汪子熙公众号总共第 309 篇原创文章. Jerry 的日常工作内容从 2020 年 8 月转到 Angular 前端开发之后,算是领略到了这个流 ...

  7. 本地开发好的 SAP Fiori Elements 应用,如何部署到 ABAP 服务器上?

    这是 Jerry 2021 年的第 29 篇文章,也是汪子熙公众号总共第 300 篇原创文章. 之前 Jerry 的两篇文章,分别介绍了如何在本地使用 Visual Studio Code 创建一个 ...

  8. SAP Fiori学习笔记

    资料链接:有些是需要自带梯子的哦- Fiori Design Guidelines​experience.sap.com戴团长:SAP Fiori Design​zhuanlan.zhihu.com如 ...

  9. SAP Fiori 页面的周期性动态刷新功能的实现步骤

    一个朋友向我咨询,关于 SAP Fiori 页面自动刷新的实现方法. 如果是 Jerry 之前视频 一步步创建 SAP Fiori Elements 应用 介绍的 SAP Fiori Elements ...

最新文章

  1. why different people have different digital response?
  2. Scala代码案例: StdIn和if..else
  3. 问题 H: 方块填数(2012年蓝桥决赛第5题--dfs)
  4. 软键盘挡住输入框问题的终极解决方案
  5. path hdu6705
  6. PS亮度蒙版扩展插件:Lumenzia for Mac 支持ps2021
  7. CWE视图层级关系解析:节点关系查询
  8. nohup命令导致nohup.out文件过大处理办法
  9. QQ企业邮箱+Spring+Javamail+ActiveMQ(发送企业邮件)
  10. 判断response.data是否为空
  11. JS中5秒中跳转到其他页面
  12. qt控制程序打开记事本_Qt 记事本程序
  13. 游戏中的数学:向量数学(vector math)
  14. h5 a标签下载链接下载文件
  15. 计算机辅助档案管理文字说明,计算机辅助档案管理
  16. python学习一点 快乐一点(2)乱序整数序列两数之和绝对值最小
  17. 组织机构树数据库表设计
  18. user-cf算法思考-K值的确定
  19. 分布式管理控制系统Git与项目托管平台Github相关概念、工作流程与操作方法
  20. 字节跳动测试岗面试跪在二面,我复盘总结了失败原因,决定再战一次

热门文章

  1. CentOS 6.x 快速安装L2TP ***
  2. 一站式学习Wireshark(转载)
  3. Linux 文件权限详解 含义和修改和安全
  4. 不要逼孩子考100分
  5. PON的技术优势及前景应用
  6. JDK、JRE、JVM到底是什么
  7. [转载] 什么是istio 官网内容
  8. 创建基于Web的实时系统
  9. SDWebImage实现分析
  10. Android之项目推荐使用的第三方库