Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

exit button if hybrid app

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?

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

exit button if hybrid app

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

exit button if hybrid app

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)

Return to “Issues”