Are you trying to send data to your lightbox and it does not work, or what is the problem ?
Here an little example, how it can be done, to send data to lightbox, by using “wix-storage”
Are you trying to send data to your lightbox and it does not work, or what is the problem ?
Here an little example, how it can be done, to send data to lightbox, by using “wix-storage”
The lightbox don’t open
and I don’t know if the data is send or not
Thanks,
Ajith
@russian-dima Can you point out the mistake or if there is no way, I will use wix storage. But I think it don’t have much storage
Hai Russian Dima
This Code Works Now !!!
Page –
$w('#dataset2').onReady( () => {
$w('#repeater1').forEachItem( ($item, index) => {
$item('#button4').onClick((event) => {
let clickedItemData = $item("#dataset2").getCurrentItem().status;
let clickedItemData1 = $item("#dataset2").getCurrentItem().image;
let clickedItemData2 = $item("#dataset2").getCurrentItem().fullName;
console.log(clickedItemData);
console.log(clickedItemData1);
console.log(clickedItemData2);
let lightboxdata = {
"status": clickedItemData,
"image" : clickedItemData1,
"fullName" : clickedItemData2,
}
wixWindow.openLightbox('EditStatus', lightboxdata);
})
})
} )
Lightbox –
import wixWindow from 'wix-window';
$w.onReady( function () {
let received = wixWindow.lightbox.getContext();
$w('#textBox1').placeholder = received.status;
$w('#image3').src = received.image;
} );
Well done my friend😁 i hope you could learn something.
And do not forget to like it, if you really liked it
.
Good luck with your further project.
@ajithkrr
Ajit i am exausted because of you xD🤣