Hi All came across this code: $w("#Image").fitMode = "fixedWidth"; but it says that fitMode does not exist on type container. As I am using a repeater linked to a dataset, and dont see a way to tell the above formula to highlight just the image portion of the repeater, is there a alternative method to getting all my images in a repeater to fit as I would prefer instead of cropping?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
instead of $w, it has to be $item...
wrong!
$w("#Image").fitMode= "fixedWidth";
right!
$item("#Image").fitMode= "fixedWidth";
Try this one...
$w.onReady(()=>{ $w('#repeater1').onItemReady(()=>{ $item("#Image").fitMode= "fixedWidth"; }); });