Hi,
Someone can help me? I would like to use Wix Pro Gallery with expand and collapse.
I would like to use more than one galleries. All galleries expand when the functional buttons was clicked. Despite of some galleries are specified collapse.
I attached a picture about my problem.
What is the problem?
Code:
export function button1_click(event, $w) {
//Add your code for this event here:
$w(“#gallery1”).expand();
$w(“#gallery2”).collapse();
$w(“#gallery3”).collapse();
}
export function button2_click(event, $w) {
//Add your code for this event here:
$w(“#gallery1”).collapse();
$w(“#gallery2”).expand();
$w(“#gallery3”).collapse();
}
export function button3_click(event, $w) {
//Add your code for this event here:
$w(“#gallery1”).collapse();
$w(“#gallery2”).collapse();
$w(“#gallery3”).expand();
}
export function button4_click(event, $w) {
//Add your code for this event here:
$w(“#gallery1”).expand();
$w(“#gallery2”).expand();
$w(“#gallery3”).expand();
}
Thanks for help!
Daniel