Hey,
I have a lazy load on my page.
I need a code to hide an element, if all entries from my database are shown in the repeater.
Let's say I have 10 entries. When all 10 entries are shown in the repeater "button1" should be hidden.
function PageCount(event) {
let Count = $w("#dataset1").getTotalCount();
let CountRepeater = $w("#listRepeater").data.length.toString();
if (Count === CountRepeater) {
$w("#button1").hide();
}
}
How can I get the count of the repeater (not from the database)