2 weeks ago - last edited 2 weeks ago
I am trying to put a right side bar into the shellplugin. The side bar consists of icons only. I'm using "sap.ushell.renderers.fiori2.RendererExtensions" but I realized "addSidePaneContent" only adds left pane. Is it possible to actually put the sidebar into the shellplugin?
Here is my code but it is currently not working (I tried using addSidePaneContent):
var oPanel = new sap.m.Panel({
width: "70px",
content: []
});
var oRendererExtensions = jQuery.sap.getObject("sap.ushell.renderers.fiori2.RendererExtensions");
if (oRendererExtensions) {
var oFeedbackIcon = new sap.ui.core.Icon({
src: "sap-icon://feedback",
size: "2.0rem",
tooltip: "Portal Feedback",
press: function(oEvent) {
this.openFeedbackPopUp(oEvent.getSource());
}.bind(this)
});
oPanel.addContent(oFeedbackIcon);
this.oFeedbackModel = new JSONModel(sap.ui.require.toUrl("com/bp/myproclandingpgshellplugin/json/Feedback.json"));
var oContactIcon = new sap.ui.core.Icon({
src: "sap-icon://headset",
size: "2.0rem",
tooltip: "Contact Us - Raise a ticket with KM Team",
press: function(oEvent) {
this.openContactInfoPopUp();
}.bind(this)
});
oPanel.addContent(oContactIcon);
oRendererExtensions.addSidePaneContent(oPanel);
}
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.