简体   繁体   中英

"My Inbox": how to enable full width within Fiori launchpad?

I'm extending My Inbox standard Fiori app so that it fits the whole screen like the image bellow.

在此处输入图像描述

Hence, I've added in the manifest.json of my My Inbox extension (and the apps used in My Inbox, just in case) this line:

{
  "sap.ui": {
    "fullWidth": true
  }
}

When the app is launched, it begins to be full screen, but then it comes back to the standard presentation.

Can anybody help me please?

I manage to find a solution: the fullwidth is actually redefine in the Component.js of My Inbox standard app. So I added these lines in the My Inbox extension project:

manifest.json

{
  "sap.ui": {
    "fullWidth": true
  }
}

Component.js

this.cross.fnd.fiori.inbox.Component.extend("cross.fnd.fiori.inbox.CA_FIORI_INBOX_EXTENSION.Component", {
    metadata: {
        manifest: "json"
    },
    
    /* Override code : begin ----------------------------------------------------- */
    //function to handle the width of the application. It is called by FLP when app is active.
    active: function () {
            sap.ushell.services.AppConfiguration.setApplicationFullWidth(true);
    }
    /* Override code : end ----------------------------------------------------- */
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM