Quantcast
Viewing all articles
Browse latest Browse all 3585

Re: How to hide buttons in Detail page if loaded from Desktop

Hi Michael,

 

You can make a check using below method:

var oDesktopDevice = sap.ui.Device.system.desktop;
if(oDesktopDevice === true){     //Don't Display Buttons
}else{     //Display Buttons
}

If required, you can use similar methods for tablet / mobile as well

var oTabletDevice = sap.ui.Device.system.tablet;
var oPhoneDevice = sap.ui.Device.system.phone;

Regards,

Sai.


Viewing all articles
Browse latest Browse all 3585

Trending Articles