Using html fragments with declarative html views

后端 未结 1 1309
猫巷女王i
猫巷女王i 2020-12-20 02:36

I am trying to decompose a large html view down into smaller, more manageable chunks.

Is it possible to use fragments to do this?

For example, i have a fragm

相关标签:
1条回答
  • 2020-12-20 03:03

    In XML-View

    Include the view with this:

    <mvc:XMLView viewName="your.namespace.ViewName" async="true" />
    

    Whereas xmlns:mvc="sap.ui.core.mvc"

    In HTML-View

    You can include Views like this:

    <div data-sap-ui-type="sap.ui.core.mvc.HTMLView" data-view-name="your.namespace.ViewName" data-async="true"></div>
    
    0 讨论(0)
提交回复
热议问题