Page 1 of 2

Collapse all collapsible on app launching

Posted: Mon Feb 24, 2014 9:13 pm
by Ral Gaultier

How do i make all the collapsible hide their content and only show their content when clicked. Currently they are all expanded but I would like then unexpanded by default. How can i modify the code to correct this?


Collapse all collapsible on app launching

Posted: Mon Feb 24, 2014 9:28 pm
by Ral Gaultier

To make it clearer, I want all the collapsible components to be uncollapsed/hide their content upon initial launch of the app


Collapse all collapsible on app launching

Posted: Mon Feb 24, 2014 10:02 pm
by Kateryna Grynko

Hi Ral,

Take a look at here please: https://getsatisfaction.com/apperyio/...


Collapse all collapsible on app launching

Posted: Mon Feb 24, 2014 11:11 pm
by Ral Gaultier

Here's what i've done but it's not working

/* mobilecollapsblock_2 */

Code: Select all

         $("#Profile_mobilecollapsblock_2 .ui-collapsible-heading- toggle").attr("tabindex", "1"); 
         Appery("mobilecollapsblock_2").trigger("collapse");

Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 5:22 am
by Igor

Dear Ral.

1 You can use "Collapsed" property :
Image

2 or below code:

pre
code
//collapse component.
Appery("mobilecollapsblock_10").collapsible("collapse");

//expand component.
Appery("mobilecollapsblock_10").collapsible("expand");
/code
/pre

where "mobilecollapsblock_10" - collapsible component name


Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 9:43 am
by Ral Gaultier

Awesome.. It works like a charm... Tnx, you're the best


Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 9:44 am
by Ral Gaultier

cheers


Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 10:00 am
by Ral Gaultier

One more thing..

Can you give me the code to modify Collapse component height and width?


Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 1:29 pm
by Maryna Brodina

Hello! By default it's 100% height and adjasted to the content. Could you clarify what do you want to change?


Collapse all collapsible on app launching

Posted: Tue Feb 25, 2014 1:59 pm
by Ral Gaultier

Hello Maryna,

I want to make the collapse component and Text look bigger.

In the component properties there's no option to increase the collapse component text font