code
Appery('Name of you block').trigger('expand');
/code
code
Appery('Name of you block').trigger('expand');
/code
Good solution! This JS code should be run on page Load event.
i have a single block which gets multiplied on data mapping. Can i expand a single Collapsible Block in such a situation?
Hello,
Yes you can.
Don't mean to jack the tread, but it was just getting good.
What is the best way to do that? If I have a button or some other control that is outside the the collapsibleSet and I want to the click event of the button to expand a specific collapsible block (one that is generated from data mapping).
I will already know the number (if there are four blocks generated and I want to expand the 3rd).
Thanks,
Garrett
Hello! Try the following code:
preAppery("mobilecollapsibleset_2").find("[data-role=collapsible]").not("[_tmpl=true]").eq(2).trigger('expand');/pre
mobilecollapsibleset_2 - name of entire mobilecollapsibleset
eq(2) - select third element, counting starting 0
Is there anyway I can make the collabsible component, so it can't be collapsed.
Hello Adnan,
Please check this post:
https://getsatisfaction.com/apperyio/...
I found myself in the same situation with Adnan. I wanted to make a collapsible component, mobilecollapsblock_5, not collapsible. (i.e stay expanded permanently). I used a workaround by adding the following javascript action to the collpase event:
event: mobilecollapsblock_5/collapse
Action Javascript: Appery('mobilecollapsblock_5').collapsible('expand');