This is the code I have in the button properties. After I save and preview, when I hover, the lightbox does not open. I am a beginner with coding. Any help would be appreciated with this one.
export function iconButton1_mouseIn(event) { // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4 // Add your code for this event here: } import wixWindow from 'wix-window'; wixWindow.openLightbox("#StopBetting");
Hi Chaddeihl,
Your code should look like like this:
import wixWindow from'wix-window'; export function iconButton1_mouseIn(event) { wixWindow.openLightbox("#StopBetting"); }
import functions always need to come at the top of your code. Also, you need to call your function inside your event.