Hi,
I am using a splitapp. Our app will be used in tablets most cases. I want to load the splitapp in a tablet similar to how it looks in phone.
i.e., the master page has to the home screen. Once, we move to a detail page, a menu button has to appear in the top left corner.
Is there a way to forcefully load as mobile always. I am not looking for any responsiveness among phone, tablet, desktop.
Thanks in Advance,
Senthil
Try running your app by passing the fakeOs parameter in the url,
http://<path>/index.html/?sap-ui-xx-fakeOs=android .
This will emulate the app as in mobile.
Hi Senthil,
Can you try the below code and see, if it solves your issue ?
this.app = new sap.m.SplitApp("AppID",{ afterDetailNavigate: function() { if (sap.ui.Device.system.phone) { this.hideMaster(); } }, });Best Regards,
Gaurav.
My 2 Cents on your requirement.
UI5 Application which are based on HTML5 follow the concept of responsive designing due to which they have different look in different devices.
Technical there seem to be a way to achieve your requirement using the method - removeDetailPage of sap.m.splitApp
Hope this helps
Why insisting on using SplitApp if you don't use an, ahem, split? ðŸ˜
Just use App and/or a simple NavigationContainer
Hi Senthil,
have you tried to use sap.m.SplitAppMode.HideMode to hide your master view?
Please take a look at the following links
Regards
Stefan
Add a comment