@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
13 lines (12 loc) • 766 B
text/xml
<<%- config?.aggregationNamespace %>:FormElement
<% if (data.formElementKey) { %> key="<%- data.formElementKey %>"<% } %>
label="<%- data.label %>"
<% if (data.id) { %> id="<%- data.id %>"<% } %>
<% if (data.metaPath) { %> metaPath="<%- data.metaPath %>"<% } %>
<% if (data.contextPath) { %> contextPath="<%- data.contextPath %>"<% } %>
<% if (data.position?.anchor) { %> anchor="<%- data.position.anchor %>"<% } %>
<% if (data.position?.placement) { %> placement="<%- data.position.placement %>"<% } %>>
<<%- config?.aggregationNamespace %>:fields>
<core:Fragment fragmentName="<%- data.embededFragment.ns %>.<%- data.embededFragment.name %>" type="XML" />
</<%- config?.aggregationNamespace %>:fields>
</<%- config?.aggregationNamespace %>:FormElement>