簡體   English   中英

“我的收件箱”:如何在 Fiori 啟動板中啟用全寬?

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

我正在擴展我的收件箱標准 Fiori 應用程序,使其適合整個屏幕,如下圖所示。

在此處輸入圖像描述

因此,我在我的收件箱擴展(以及我的收件箱中使用的應用程序,以防萬一)的manifest.json中添加了這一行:

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

當應用程序啟動時,它開始全屏顯示,但隨后又回到標准演示。

有人可以幫我嗎?

我設法找到了一個解決方案:全寬實際上是在 My Inbox 標准應用程序的Component.js of重新定義的。 所以我在我的收件箱擴展項目中添加了這些行:

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 ----------------------------------------------------- */
});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM