How to expand a strip

Hello,

I am having an issue creating a collapsable strip.
I want the “view more” button at the bottom of #columnstrip14 to expand the #columnstrip15 and show two links when clicked. The only support page I found was for a text box .

I wonder if there is a fairly simple way to work around this.

Thanks,
Yuki

Hi Yuki!

You’ll need to set the second strip to be collapsed on load in its properties panel , then write an onClick() function for your button that should use an expand() function within it to expand the strip when clicked.

If you need an additional functionality, such as toggling between collapsed and expanded state of a strip, then you also need to add an If statement to your function that should check if the strip is currently collapsed.

You may find these references useful:
https://www.wix.com/corvid/reference/$w.Button.html#onClick
https://www.wix.com/corvid/reference/$w.ColumnStrip.html#collapse
https://www.wix.com/corvid/reference/$w.ColumnStrip.html#expand