Search code examples
appceleratorappcelerator-alloy

Appcelerator hide multiple view with same class (Alloy)


I'm looking for a way to show/hide multiple views with the same class. Using jQuery is possible to do this usign:

$('.className').hide();

Is there any way to do that in appcelerator JS? Thank you.


Solution

  • I don't think so. You'll have to loop through the view array and call hide() on each one.

    If you can add all the views to the same parent view, then you can hide just the parent view.