Custom action on mobile quick action bar?

Hello, I’m wondering if there is a way I can set my quick action bar through Velo to open a different lightbox depending on the subpage. If I do it the regular way then the same lightbox would open on every subpage on the mobile site, hence the need for custom code.

I tried something along the lines of:

$w( " #quickActionBar1 " ).onItemClicked( (event) => {
wixWindow.openLightbox( “Lightbox1” );
} );

But didn’t work. Is it possible?