Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.3 KB

enabling-lazy-loading-for-custom-sections-de25ca7.md

File metadata and controls

30 lines (21 loc) · 1.3 KB

Enabling Lazy Loading for Custom Sections

You can enable lazy loading for the sections you've added using an extension point.

Note:

This topic is applicable only to SAP Fiori elements for OData V2.

By default, lazy loading is enabled for the standard sections on the object page. For sections added using extension points, you need to enable lazy loading by setting the enableLazyLoading parameter to true in the manifest.json file of your application. To do so, proceed as shown in the following sample code:

"sap.suite.ui.generic.template.ObjectPage.view.Details": {
  "AfterFacet|STTA_C_MP_Producttext|ProductTextCollectionFacetID":{
    "className": "sap.ui.core.Fragment",
    "fragmentName": "STTA_MP.ext.fragments.ApplicationLogBreakout",
    "type": "XML",
    "sap.ui.generic.app": {
      "title": "{{xtit.applicationLog}}",
      "enableLazyLoading": true
    }
  },

Note:

Set the parameter only for those sections that have no impact on other sections or on the object page header.

For more information about lazy loading, see the SAP Fiori Design Guidelines and the API Reference for ObjectPageLayout.