Strip collapses but will not expand! Please help!

Hi all,

I’ve read forum and tutorials all-over the place and can’t work this out. My strip “weybridge” is set in it’s properties and collapsed by default. Then I have a button called weybridgebutton which is set to expand the strip. The strip is successfully collapsed on load, but for love nor money I can’t get the strip to expand when I click the button.

It’s the only code on the page so I wonder if I need to add a start or end to the code? I’m pretty new to Corvid so could be missing something obvious.

Pretty desperate to get this sorted and would hugely appreciate any ideas.

Nate

export function weybridgebutton_click(event) {
$w( “#weybridge” ).expand();

}

For anyone who finds this - I gave up on this code and used the below, which worked

$w.onReady( function () {
$w( “#weybridgebutton” ).onClick(() => {
$w( “#weybridge” ).expand();
$w( “#guildford” ).collapse();
});

$w( “#guildfordbutton” ).onClick(() => {
$w( “#weybridge” ).collapse();
$w( “#guildford” ).expand();
});
});