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.
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.
我不这么认为。您必须遍历视图数组并在每个数组上调用 hide()。
如果您可以将所有视图添加到同一个父视图,那么您可以只隐藏父视图。
不,你不能那样做,你可以制作Dynamic Styles
http://docs.appcelerator.com/platform/latest/#!/guide/Dynamic_Styles
$.addClass($.view, "hide"); // --> appears blue and 24dp
tss
".hide" : {
visible: false
}