Is there anyway to code for a fixed width fitmode for an image in a lightbox

No Worries

fixed it here for others who struggle trying to learn to code

import { lightbox } from ‘wix-window’ ;
import wixData from ‘wix-data’ ;
import wixWindow from ‘wix-window’ ;

$w.onReady(() => {
let theItem = lightbox.getContext(); //this is the item you took from page
let postID = theItem._id; // this is the field key for the item ID in the database collection
$w( ‘#image15’ ).fitMode = “fixedWidth” ; THIS IS THE TINY BIT NEEDED SIGH
$w( “#dataset1” ).setFilter(wixData.filter()
.eq( “_id” , postID) //we are now filtering to to
)
.then(() => {
console.log( “Dataset is now filtered” );
})
. catch ((err) => {
console.log(err);
});

});

Hello,

here you can find all given possibilities for images…

https://www.wix.com/corvid/reference/$w.Image.html#fitMode