Page 1 of 1

Need a trigger to go off to make one button visible and another invisible

Posted: Fri May 16, 2014 2:31 pm
by Dave Troxel

Basically, whatever action they take next, I want it to set one button to visible true and another button to visible false. Whether clicking Back or selecting a different item in the list, etc... I need it to reset the visibility on two buttons.


Need a trigger to go off to make one button visible and another invisible

Posted: Fri May 16, 2014 3:31 pm
by Evgene Karachevtsev

Hello Dave,

Yu should use such code:

codeAppery('mobilebutton_2').show(); // show button with name mobilebutton_2
Appery('mobilebutton_2').hide(); //- hide button with name mobilebutton_2 /code


Need a trigger to go off to make one button visible and another invisible

Posted: Fri May 16, 2014 3:58 pm
by Dave Troxel

Ok, but where do I put the code so that no matter what they do next, it triggers? Whether they swipe, tap, click,... no matter... Is there such a function to make that happen? Thanks Evgene.


Need a trigger to go off to make one button visible and another invisible

Posted: Fri May 16, 2014 4:55 pm
by Evgene Karachevtsev

You need to use events to implements your logic: http://docs.appery.io/documentation/w...


Need a trigger to go off to make one button visible and another invisible

Posted: Fri May 16, 2014 10:38 pm
by Dave Troxel

Can I hide a grid in the same fashion? Is it called a grid?


Need a trigger to go off to make one button visible and another invisible

Posted: Sat May 17, 2014 12:38 am
by Igor

Hello,

You can use the same code to show/hide grid component.
You can use any events to execute this code. Take a look at below link to see the events list:
http://docs.appery.io/documentation/w...