Page 1 of 1

exit button if hybrid app

Posted: Tue Mar 07, 2017 9:05 am
by Terry Gilliver

I have an invisible exit button on a list component that should show if I have a hybrid app.

The code is:

pre if(isPhoneGapApp) {
console.log('This is a hybrid app, so show the exit button');
Apperyio('exit_listitem').parent().show();
}/pre

This works on a page (in the mobile container), but not if the list component is embedded in a panel. I tried using negative logic to test in the browser (if(!isPhoneGapApp)) and i know that the code executes as the message is sent to the console.
Image

elements:

Image

Any ideas?


exit button if hybrid app

Posted: Tue Mar 07, 2017 12:32 pm
by Terry Gilliver

I have got the buttons to show now. i had visibility unchecked. I thought that visibility was the same as .show() and by unclicking it I had effectively done a .hide(), but this is obviously not the case.


exit button if hybrid app

Posted: Tue Mar 07, 2017 6:56 pm
by Serhii Kulibaba

Hello Terry,

Do you have the only one exit button on the page? If so - please use JS below to show it:

pre Apperyio('exit_listitem').show();/pre
(without parent() method)