Page 2 of 2

Collapsible Set

Posted: Mon Jun 17, 2013 3:20 pm
by Emmz

code
Appery('Name of you block').trigger('expand');
/code


Collapsible Set

Posted: Mon Jun 17, 2013 4:03 pm
by Kateryna Grynko

Good solution! This JS code should be run on page Load event.


Collapsible Set

Posted: Tue Jun 18, 2013 4:42 am
by aviz

i have a single block which gets multiplied on data mapping. Can i expand a single Collapsible Block in such a situation?


Collapsible Set

Posted: Tue Jun 18, 2013 4:44 am
by Igor

Hello,
Yes you can.


Collapsible Set

Posted: Tue Sep 24, 2013 11:58 pm
by Garrett

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


Collapsible Set

Posted: Wed Sep 25, 2013 7:19 am
by Maryna Brodina

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


Collapsible Set

Posted: Fri Jul 31, 2015 6:44 am
by Adnan

Is there anyway I can make the collabsible component, so it can't be collapsed.


Collapsible Set

Posted: Sat Aug 01, 2015 4:15 am
by Evgene Karachevtsev

Hello Adnan,

Please check this post:
https://getsatisfaction.com/apperyio/...


Collapsible Set

Posted: Thu Oct 01, 2015 10:24 pm
by Taiye

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');