Hi Guys,
Below is the coding for sap.ui.unified.Shell in JS which might help you in the coding.
Code
// Creating the Head Item
var oHome = new sap.ui.unified.ShellHeadItem("oHomeDashboard", {
showSeparator: true,
selected:false,
icon:"sap-icon://home",
tooltip: "Return To Home",
press: function(){
oController.handleHomePress();
}
});
// Creating the User Item
var oEmployee = new sap.ui.unified.ShellHeadUserItem("oEmployee",{
username: "My Name",
image: "sap-icon://person-placeholder"
})
// Creating the logout function
var oLogout = new sap.ui.unified.ShellHeadItem({
showSeparator: true,
icon:"sap-icon://log",
tooltip: "Logout",
press: function(){
oController.handleLogoutPress();
}
});
//Placing all item to the Shell
var oHeader = new sap.ui.unified.Shell("oHeaderDashboard",{
headItems: oHome,
icon: "http://openui5.org/resources/OpenUI5_logo_only.png",
user:oEmployee,
headEndItems:oLogout
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |