Skip to Content
0
Sep 14, 2023 at 11:42 AM

Fiori Elemenets Custom Action: Define Icon?

60 Views

Hello,

I have got an Fiori Elements App based on a Worklist and ObjectPage. I have added some custom Function based on this documentation: Enabling Actions Added Using Extension Points - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com)

This is working as expected. But now I try to add an Icon to the generated Button. Is there any way to achive this? Maybe like:

"MyAction": {"id": "myActionButton","text": "{i18n>myTest}","press": "onActionOne","requiresSelection": true, 
"icon": "sap-icon://duplicate"}, 

I'am on a S/4 2022 with SAPUI5 1.108

Thank you for any hint.

ps: I know I would be possible with some hook (onBeforeRendering) or so, but it doesnt feels right ;)