The lightbox still won’t open. Does it have anything to do with the fact that the buttons are inside a repeater element. If I change the ID of one button, they all change. How can I write code to distinguish which button is pressed?
Here is the updated code:
export function repeaterButton2_click(event, $w) {
const data = {
"Item Name": 'Hello world',
"Details": 'Text'
};
wixWindow.openLightbox('SideBox', data).then(dataBack => {
console.log(dataBack);
console.log('Bye!');
});
}
Thank again.