I have code to getItems like getItems(2,1) to get items starting at index 2 and get 1. This works great on desktop but fails on mobile with error code that getItems is not a function?
Search
Wishlist Page is the new official platform for requesting new features. You can vote, comment, and track the status of the requested features (requests from this page will be migrated to the new Wishlist soon).
can you share your code?
This is the code that works on desktop but does not render at all on mobile.
$w("#newsdataset").getItems(2, 1)
.then( (result) => {
let items = result.items;
$w("#fullWidthSlides1").slides[0].background.src = items[0].newsImage;
$w("#slideShowHeadline1").text = items[0].title;
});
It is the getItems function that renders the error.
OK got it.
will pass it to our QA to verify.
thanks!