啓動板具有使用插件的擴展概念。在這裏,您可以將按鈕添加到操作菜單,頁眉,頁腳和用戶界面中的其他選定位置。 但我不確定擴展SAP ONE Support Launchpad(實際上是否基於ushell)可以進行擴展,因爲需要對啓動板內容進行更改。
有關API的文檔可以在這裏找到: http://help.sap.com/saphelp_nw75/helpdata/en/56/e9328978954c77946b75c0976f221c/content.htm?frameset=/en/d5/8602924af34fc3816d44ddb6a9e911/frameset.htm¤t_toc=/en/bd/e12a271f0647e799b338574cda0808/plain.htm&node_id=130&show_children=false
以及詳細的API文檔在這裏: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ushell.renderers.fiori2.Renderer.html
樣本編碼爲插件看起來是這樣的:
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");
}
})]
}));
希望這個幫助!