Page 1 of 1

hide multiple components

Posted: Tue May 05, 2015 10:08 am
by Michael4771079

Hi,
I need to hide multiple components on page load, below is the code I used but its making the app throw an error alert.

App just wouldnt save with this approach, when commented out it saved as normal.

What can I do in this case?

Apperyio("toppinggrid1").hide();

Apperyio("toppinggrid2").hide();

Apperyio("toppinggrid3").hide();

Apperyio("toppinggrid4").hide();

Apperyio("toppinggrid5").hide();

Apperyio("toppinggrid6").hide();

Apperyio("toppinggrid7").hide();

Apperyio("toppinggrid8").hide();

Apperyio("toppinggrid9").hide();

Apperyio("toppinggrid10").hide();

Apperyio("toppinggrid11").hide();

Image


hide multiple components

Posted: Tue May 05, 2015 6:28 pm
by Serhii Kulibaba

Hello Michael,

Please add the class for every grid (e.g. "myGrid") and use it in JS for hidding grids:

$(".myGrid").hide();


hide multiple components

Posted: Tue May 05, 2015 7:25 pm
by Michael4771079

Thanks Sergiy,
Thats great, I didnt know I could use JS with class, thought it was only for css!

Thanks a bunch