Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Collapsible Set

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Collapsible Set

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

aviz
Posts: 0
Joined: Fri Dec 14, 2012 6:37 am

Collapsible Set

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Collapsible Set

Hello,
Yes you can.

Garrett
Posts: 0
Joined: Sat Aug 17, 2013 12:18 pm

Collapsible Set

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Collapsible Set

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

Adnan
Posts: 0
Joined: Fri Jul 31, 2015 6:44 am

Collapsible Set

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

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

Collapsible Set

Hello Adnan,

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

Taiye
Posts: 0
Joined: Wed Sep 23, 2015 12:13 am

Collapsible Set

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

Return to “Issues”