Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Declarative support - icons

Hi,

I am trying to displaying SAPUI5 icons using declarative support. However, I am unable to see the icon.

<!DOCTYPE html>

<html class="sap-desktop  sapUiMedia-Std-Desktop sapUiTheme-sap_bluecrystal" data-sap-ui-browser="cr39" data-sap-ui-os="win7">

   <head>

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

      <meta http-equiv="X-UA-Compatible" content="IE=edge">

      <title>Declarative Programming Model - sap.ui.core</title>

      <script

      id="sap-ui-bootstrap"

      data-sap-ui-libs="sap.m, sap.suite.ui.commons,sap.ui.core"

      type="text/javascript"

      src="https://sapui5.hana.ondemand.com/sdk/resources/sap-ui-core.js"

      data-sap-ui-theme="sap_goldreflection"

      data-sap-ui-modules="sap.ui.core.plugin.DeclarativeSupport">

      </script>

   </head>

<body class="sapUiBody">

  <div data-sap-ui-type="sap.ui.core.Icon" data-icon="sap-icon://nav-back"></div>

    <div data-sap-ui-type="sap.m.StandardTile" data-icon="sap-icon://action"></div>     

</body>

</html>

Tags:
Former Member
Former Member replied

Found the solution

<div data-sap-ui-type="sap.ui.core.Icon" data-src="sap-icon://nav-back"></div>

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question