XML : Using if in view.xml Appcelerator Titanium

  <ListSection sec="fav" if="Alloy.CFG.favourite.enabled === true">          <ListItem myTitle:text="L('fav')" slug="newsrizeFav" template="regularItem" />  </ListSection>    

I am using if property in view.xml in titanium it works perfectly on android but on IOS if Alloy.CFG.favourite.enabled = true their is no problem but if Alloy.CFG.favourite.enabled = false titanium throws an exception "Error: Invalid type passed to function"

No comments:

Post a Comment