[英]SAP Fiori Launchpad - Dialog
啟動板有一個使用插件的擴展概念。 您可以在此處向操作菜單、頁眉、頁腳和 UI 中的其他一些選定位置添加按鈕。 但我不確定 SAP ONE Support Launchpad(實際上基於 ushell)可以擴展什么擴展,因為需要對啟動板內容進行更改。
可以在此處找到有關 API 的文檔。
以及詳細的 API 文檔here 。
作為插件的示例編碼可能如下所示:
sap.ui.define([
"sap/ui/core/Component",
"sap/m/MessageBox"], function(Component, MessageBox) {
return Component.extend("my.FLP.plugin.Component", {
init: function() {
// 1. fiori renderer for reuse
var renderer = sap.ushell.Container.getRenderer("fiori2");
/**
* 2.
* Add Item to the Action Menu
*/
renderer.addActionButton("sap.m.Button", {
id: "testHomeButton",
icon: "sap-icon://family-care",
text: "Help for FLP page",
press: function() {
window.open("http://www.sap.com", "_blank");
}
}, true, false, [sap.ushell.renderers.fiori2.RendererExtensions.LaunchpadState.Home]);
renderer.addActionButton("sap.m.Button", {
id: "testAppButton",
icon: "sap-icon://family-care",
text: "Help for App page",
press: function() {
window.open("http://www.sap.com", "_blank");
}
}, true, false, [sap.ushell.renderers.fiori2.RendererExtensions.LaunchpadState.App]);
/**
* 3.
* Add Item to the Footer
*/
renderer.setFooter(new sap.m.Bar({
design: sap.m.BarDesign.Footer,
contentLeft: [new sap.m.Button({
text: "Important Information",
press: function() {
MessageBox.information("This Fiori Launchpad has been extended to improve your experience");
}
})]
}));
希望這有幫助!
Fiori Launchpad 無法發送通知。 它已在 Fiori 2.0 中引入。 請參閱此鏈接https://experience.sap.com/skillup/sap-fiori-2-0-the-launchpad-part-2/ 。 如果可行,請移至 Fiori 2.0。
問候, 阿米特
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.