BjornS
Posts: 0
Joined: Tue Nov 20, 2012 12:22 pm

If statement

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

If statement

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/

Return to “Issues”