I am relatively new to sapui5. My search for "[sapui5]icon link" brought no useful results. So here is my question.
I have the following sap.m.Link
<Link id="myLink" href="http://stackoverflow.com/" text="Stackoverflow" />
which displays the text "Stackoverflow" on the ui, and when I click on it I will navigate to stackoverflow.com. That's the effect I want.
But how can I replace the text "Stackoverflow" with an image icon like for example "sap-icon://download" ? Acording to the Link-API it doesn't have an attribue
icon. So is there a way to get the same effect using sap.m.Button that does have this attribute:
<Button icon="sap-icon://download" press="onDataExport" />
What would the handler "onDataExport" look like? My idea is to use a (somehow) hidden sap.m.Link and a sap.m.Button containing the icon. The pressed-handler of the Button would then somehow trigger a 'link clicked' (not sure if that is possible).