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?
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?
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
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.
Solution is good, but please update docs or fix the bug. Thanks!
Hello Enzo,
Could you clarify what docs are you referring to?
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."
Enzo,
Thank you! We will review docs