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

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

Hi Bahar,

You can use this code to expand/collapse accordingly:pre$("[data-role=collapsible]").collapsible("expand");
$("[data-role=collapsible]").collapsible("collapse");/pre

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

Works well.....

Katya, you always seem to be spot on with your responses.

thomasyim02
Posts: 0
Joined: Fri Aug 15, 2014 8:10 am

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

How to use this code? Is it a Javascipt? Why I can't run it even I change the specific block id?

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

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

Hello,

A person, who used this code, used this JavaScript as the handler of event click for the button.

thomasyim02
Posts: 0
Joined: Fri Aug 15, 2014 8:10 am

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

I have tried to used it as a Javascipt Handler, but failed to expand the collapse block. Any additional script need to add above it or below it when I used in the event tab?

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

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

Please check, are there any errors in the console of the browser? Also please make sure that you use the correct name for mobilecollapsibleset

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

How do i implement this.
For example with the collapsable block name 'mobilecollapsblock_397'
?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Expanding collapsible set block with a button outside of the collapsible set. Collapsible set is dynamically generated w

Hi,

Like the following:

preAppery("mobilecollapsblock_397").collapsible("expand");
Appery("mobilecollapsblock_397").collapsible("collapse");/pre

Return to “Issues”