Page 1 of 1

Event expand not working

Posted: Thu May 22, 2014 7:05 am
by Quarenta

Hello. I'm trying to do something when a collapsblock( inside a collapsibleset ) is expanded but nothing is triggered.

I have used the jquery on method, but nothing.

Any help?


Event expand not working

Posted: Thu May 22, 2014 8:04 am
by Evgene Karachevtsev

Helllo Quarenta,

Let's try using this code on "page show" event:

codeAppery("mobilecollapsblock_6").on('collapsiblecollapse', function () {
alert('collapse');
});
Appery("mobilecollapsblock_6").on('collapsibleexpand', function () {
alert('Expanded');
}); /code

where mobilecollapsblock_6 is the name of your collapseblock


Event expand not working

Posted: Thu May 22, 2014 1:49 pm
by Quarenta

Hello in fact my collapsibleset is mapped to a service, so the collapsblocks are created in runtime, so as there are more than one collapsblock, using Appery("mobilecollapsblock_6") doesn't work but $('[name="mobilecollapsblock_6"]') works to get the DOM objects.

As of the events "collapse" and "expand", your suggestion worked, the replacements "collapsiblecollapse" and "collapsibleexpand".

Thanks for the help. But now is time for you guys to update the docs, because if i didn't ask i would never guess.


Event expand not working

Posted: Mon Jun 02, 2014 9:17 am
by Enzo Francesca

Solution is good, but please update docs or fix the bug. Thanks!


Event expand not working

Posted: Mon Jun 02, 2014 11:07 am
by Evgene Karachevtsev

Hello Enzo,

Could you clarify what docs are you referring to?


Event expand not working

Posted: Mon Jun 02, 2014 11:31 am
by Enzo Francesca

This one, for example.... http://devcenter.appery.io/documentat... it's quite hard for us to clearly understand what is working and what is not working. In this case Collapsible have a couple of bugs still not fixed, it would be good to have a reference of workarounds directly in the official docs, because otherwise we have to do deep searches on this forum just to findout what can be explicitated in docs. It would be enough to write something like: "Please note that at the moment it's not possible to use Expand or Collapse event in the dropdown menu, use JavaScript instead."


Event expand not working

Posted: Mon Jun 02, 2014 11:55 am
by Evgene Karachevtsev

Enzo,

Thank you! We will review docs