Page 1 of 1

Set collapsible to be collapsed on app launch

Posted: Fri Sep 26, 2014 6:02 am
by DoublEqual

Hello,
I would like multiple collapsibles to be collapsed upon the app launching, how would I achieve this?

I've tried the following javascript codes according to the forum:
Appery("collapsible_name").collapsible( "option", "collapsed", true);
Appery("collapsible_name").collapsible("collapse");

On a "Load" event of the startScreen, neither of these worked.
As one post suggested, I searched for a "collapsed" checkbox within the properties of the collapsible, but I didn't see such an option, perhaps it was removed?

What would be the best way to approach this, considering there are multiple collapsibles on the page and I want all of them to be collapsed upon launch?

Thanks.


Set collapsible to be collapsed on app launch

Posted: Fri Sep 26, 2014 7:08 am
by Evgene Karachevtsev

Hello,

Please select collapsible block and not the header in the breadcrumbs and you'll see checkbox in properties. Please see the screenshot
Image


Set collapsible to be collapsed on app launch

Posted: Fri Sep 26, 2014 7:19 am
by DoublEqual

Thank you. I thought I WAS clicking on the collapsible block, but I guess what I was clicking on is considered the "content"... While the block is expanded, it's very difficult to click the "block"... I had to click the very upper right corner to get the block properties to pop up. So maybe that's something to consider in future updates.

Anyway, it worked. Thank you very much.


Set collapsible to be collapsed on app launch

Posted: Wed Jun 17, 2015 5:52 pm
by Joe Sharples

Hi,

I'm looking to collapse a block using javascript on page show.

I tried:

preAppery("collapsibleBlockName").collapsible("collapse");/pre

but it didnt work.