Quarenta
Posts: 0
Joined: Tue Apr 15, 2014 12:36 pm

Event expand not working

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Event expand not working

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

Quarenta
Posts: 0
Joined: Tue Apr 15, 2014 12:36 pm

Event expand not working

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.

Enzo Francesca
Posts: 0
Joined: Tue May 20, 2014 11:56 am

Event expand not working

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Event expand not working

Hello Enzo,

Could you clarify what docs are you referring to?

Enzo Francesca
Posts: 0
Joined: Tue May 20, 2014 11:56 am

Event expand not working

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."

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Event expand not working

Enzo,

Thank you! We will review docs

Return to “Issues”