Page 1 of 1

Click/Expand event of collapisble panel

Posted: Tue Aug 20, 2013 10:56 am
by Toblerone

Hi all,

I want to invoke a service so that when I expand a collapsible panel a service is called to populate some fields within the panel. However, the click event of the panel is never raised unless I click inside the panel. Is there no way to handle a click/expand event on the collapsible panel itself?

Thanks


Click/Expand event of collapisble panel

Posted: Tue Aug 20, 2013 11:38 am
by Kateryna Grynko

Hi Toby,

You can use Collapse and Expand events for this component.


Click/Expand event of collapisble panel

Posted: Thu Sep 19, 2013 4:29 am
by Angela Temple Rogers

Could you share an example of this?


Click/Expand event of collapisble panel

Posted: Thu Sep 19, 2013 5:41 am
by Emmz

Appery('yourblock').trigger('expand');//dynamically collapse and expand a collapsible block


Click/Expand event of collapisble panel

Posted: Thu Sep 19, 2013 6:37 am
by Kateryna Grynko

Hi Angel,

You can also use collapse event inside of Collapsible panel component:
codeAppery('mobilecollapsblock_1').trigger('collapse');
Appery('mobilecollapsblock_1').trigger('expand');/code


Click/Expand event of collapisble panel

Posted: Thu Oct 10, 2013 5:44 pm
by osiris1@yahoo.com

Excellent, the code was very helpful.