Page 1 of 1
How to programmatically expand a collapsible section
Posted: Thu Jan 02, 2014 8:06 pm
by araskin3i
I am trying to programmatically expand out a collapsible section by calling
Appery("MenuDetail_collapseBlockCategories_0").trigger('expand');
but nothing happens on my screen. Is there a bug around this that I am not aware of?
How to programmatically expand a collapsible section
Posted: Thu Jan 02, 2014 8:36 pm
by Kateryna Grynko
Hi,
Are there any console errors (F12)? This is correct if "MenuDetail_collapseBlockCategories_0" component exists.
How to programmatically expand a collapsible section
Posted: Thu Jan 02, 2014 8:45 pm
by araskin3i
Hi Katya,
Thanks for responding. Unfortunately there are no console error. I debugged through it to make sure that the code was being executed. Indeed it was but the problem is nothing actually happened on the screen.
How to programmatically expand a collapsible section
Posted: Thu Jan 02, 2014 9:50 pm
by Kateryna Grynko
Please check in Appery.io UI, probably your collapsible block has another name.
How to programmatically expand a collapsible section
Posted: Thu Jan 02, 2014 10:25 pm
by araskin3i
I considered this. Please take a look at the attached screen shot. Is this the DIV I should be calling the expand event on?
How to programmatically expand a collapsible section
Posted: Fri Jan 03, 2014 4:42 pm
by Kateryna Grynko
See attribute 'name'. You should use collapseBlockCategories.
How to programmatically expand a collapsible section
Posted: Fri Jan 03, 2014 5:27 pm
by araskin3i
Thanks Katya. This is correct. I was passing in the ID but that did not work. Once i passed in the 'name' it worked great.
Appery("collapseBlockCategories_0").trigger('expand');
How to programmatically expand a collapsible section
Posted: Fri Jan 03, 2014 5:54 pm
by Kateryna Grynko