cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Right Side Bar into Shellplugin

nataliechen98
Participant
0 Kudos

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? 

nataliechen98_0-1714380359964.png

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); 

}

 

Accepted Solutions (0)

Answers (0)