intel / appframework

The definitive HTML5 mobile javascript framework
http://app-framework-software.intel.com/
MIT License
2.43k stars 881 forks source link

I try hidden the back button?but can't #865

Open dajiaman opened 9 years ago

dajiaman commented 9 years ago

setBackButtonVisibility(false)

i think it's not work?

pavurya commented 9 years ago

.view header .backButton { visibility:hidden; }

holmberd commented 8 years ago

setBackButtonVisibility(false);

Seems that when used with 'panelload', it will currently only work the second time a panel with the header is loaded.

Try using:

$(".backButton").css("visibility", "visible");
$(".backButton").css("visibility", "hidden");
bugre commented 8 years ago

Hi, @holmberd, i think the behavior of the BackButton only showing after second panel is loaded, happens because when the 1st panel is loaded there is nowhere to go "back" to.

holmberd commented 8 years ago

Hi @bugre, yes that would be the correct logic. That is currently not the case for me, as I have two panels loaded before setting the header to visible, i.e third panel in. But in all fairness I didn't give it much testing as the solution was faster. Thanks tho.

bugre commented 8 years ago

Hi @holmberd , happy to help/share. If you still wanna invest some time, may be take a look at the short/quick sample i've added to this case at Intel Forums (https://software.intel.com/en-us/forums/app-framework/topic/560985#comment-1848859). It's a while since i wrote it, and if i remember correctly at that time the behavior was as i expected.