jonlavigne
Posts: 0
Joined: Thu May 24, 2012 9:15 pm

How to Checking null fiels to hide items

I have an app which can return different types of media in a feed which I want to display. How can I check if my field is Null or not and if so hide or show the element?
I use a list, in the list I have some labels, image and video. Sometimes I want to show the image, sometimes the image is null I want to show a text and hide the image component.
Thanks
Jonathan

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

How to Checking null fiels to hide items

When you map the service to a component, you can check in mapping if the value is empty or null. If yes, you can hide it like this:

code
element.hide();
/code

http://help.tiggzi.com/documentation/...

jonlavigne
Posts: 0
Joined: Thu May 24, 2012 9:15 pm

How to Checking null fiels to hide items

thanks a lot!

Return to “Issues”