I currently have a functioning repeater that displays the correct information when expanded. The only issue is that when I click expand, its expands all of the items on the repeater instead of just the one that was selected. Any ideas on how to fix this issue?
Here is my current code:
#vectorImage1 is the arrow pointing down to expand the item
#vectorImage2 is the arrow pointing up to collapse the item
$w.onReady(function () {
$w("#dataset1").onReady(() => {
$w("#repeater1").onItemReady(() => {
if ($w('#box12').collapsed) {
$w("#vectorImage2").hide();
}
else $w("#vectorImage1").show();
})
})
});
export function vectorImage1_click(event) {
let $item = $w.at(event.context);
if ($w('#box12').collapsed) {
$w('#box12').expand();
$w("#vectorImage2").show();
$w("#vectorImage1").hide();
}
else
$w("#box12").collapse();
}
export function vectorImage2_click(event) {
let $item = $w.at(event.context);
if ($w('#box12').expand) {
$w('#box12').collapse();
$w("#vectorImage1").show();
$w("#vectorImage2").hide();
}
else
$w("#box12").expand();
}