Context:
I have a box with a group of images in every instance in a repeater. I have a button in this box and I want to be able to click the button and hide the entire box in that specific repeater scope.
Problem:
For some reason it wont hide or show the element. I can change the text of an element without changing anything else. But it wont let me hide or show elements. Is there a solution?
export function closeBtn_click(event) {
const itemClicked = event.context.itemId;
$w("#blurtsRepeater").forEachItem( ($item, itemData, index) => {
**if** (itemData._id === itemClicked) {
$item("#panel01").hide; // <-- This line doesn't work
$item("#text87").text = "suck dick"; // <-- This line works
console.log("Success:", itemData);
}
} );
}
#show #hide #repeater #scoped #nested