Page 1 of 1

If statement

Posted: Sat Dec 15, 2012 1:40 pm
by BjornS

I need to do a if statement. When the user double tap on a list item i want it to check if a text label is visible or not. If it isn't.. it should change the visible property to true and if it's visible i want it to change it to not being true :) Do i need a java script for this and if i have.. do you got a example on how that could look?


If statement

Posted: Sat Dec 15, 2012 3:21 pm
by maxkatz

Run JavaScript on button click.

To get the value of a component:

code
var value = Tiggzi('label_name').text();
if (value == ...)
// do something
else
// do something
/code

http://docs.tiggzi.com/javascript-api/