How to display glyphicon/font-awesome in sap.ui.core.Icon?
问题 As the collection of icons is pretty limited in SAPUI5/OpenUI5 I would like to display glyphicons and / or font-awesome icons in a sap.ui.core.Icon. How can this be achieved? 回答1: Inorder to use an external icon within an existing control, you could use the sap.ui.core.IconPool control. The control provides a addIcon method for adding an Icon. List item Declare the font-face tag in your CSS font-face { font-family: 'My-Icons'; src: url('_PATH_TO_EOT_FILE_'); src: url('_PATH_TO_EOT_FILE_?