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?
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?
Hi,
Are there any console errors (F12)? This is correct if "MenuDetail_collapseBlockCategories_0" component exists.
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.
Please check in Appery.io UI, probably your collapsible block has another name.
See attribute 'name'. You should use collapseBlockCategories.
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');
Glad it helped!