How to update a repeater element when 'Load More' is clicked

Hi There,

I currently have a repeater linked to a dataset which pulls back 20 results form the dataset. The repeater/dataset has a button attached to the ‘Load More’ action. This works perfectly.

On ready I have some Wix code that checks for a value to be set and shows a text element. This is also working fine, however the code doesn’t get fired when the ‘Load More’ button is pressed (even though more elements are shown).

Any idea where I have to put my code to have it run on following pulls form the dataset when the load more button is pressed?

$w.onReady(function () {
 $w("#fabricDataset").onReady(() => {
  $w("#fabricRepeater").forEachItem(($w, itemData, index) => {
   if (itemData.newFabric === true) {
    $w("#textNew").show();
   }
  });
 });
});

The code above give the desired results for the initial repeater items shown on page load.

I’ve tried adding this to both onReday for the dataset and onClick of the button.

Any hep would be very much appreciated.

/Jamie

It’s always the last place you look… I added this to the Repeater onItemReady event listener and it worked like a charm!

export function fabricRepeater_itemReady($item, itemData, index) {
if (itemData.newFabric === true ) {
$item(“#textNew”).show();
}
}