@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
30 lines • 1.06 kB
text/xml
<%_ if (!config?.hasAggregation) { _%>
<<%- macrosNamespace %>:actions>
<%_ } _%>
<<%- config?.aggregationNamespace %>:Action
<%_ if (data.embeddedAction?.eventHandler?.fileName) { _%>
core:require="{ handler: '<%- data.embeddedAction.eventHandler.fileName %>' }"
<%_ } _%>
<%_ if (data.id) { _%>
id="<%- data.id %>"
<%_ } _%>
<%_ if (data.actionKey) { _%>
key="<%- data.actionKey %>"
<%_ } _%>
text="<%- data.text %>"
<%_ if (data.embeddedAction?.eventHandler?.fnName) { _%>
press="<%- data.embeddedAction.eventHandler.fnName %>"
<%_ } _%>
<%_ if (data.anchor) { _%>
anchor="<%- data.anchor %>"
<%_ } _%>
<%_ if (data.placement) { _%>
placement="<%- data.placement %>"
<%_ } _%>
<%_ if (data.requiresSelection !== undefined) { _%>
requiresSelection="<%- data.requiresSelection %>"
<%_ } _%>
/>
<%_ if (!config?.hasAggregation) { _%>
</<%- macrosNamespace %>:actions>
<%_ } _%>