I’m currently working with a repeater that is being populated via a Wix Data query. I want to be able to display a max of 15 items per time, and include a button that will load another 15. Anyone can help?
—> .skip()
—> .limit()
add this two to your QUERY…
wixData.query()
.eq(DB, dbField)
.find()
.then((res)=>{
let items = res.items;
if(items) {console.log("Data-found...");
console.log(items);
}
else {console.log("No data found!);}
})
.catch((err)=>{console.log(err);});
wixData.query()
.limit()
.skip()
.eq(DB, dbField)
.find()
.then((res)=>{
let items = res.items;
if(items) {console.log("Data-found...");
console.log(items);
}
else {console.log("No data found!);}
})
.catch((err)=>{console.log(err);});