Also, these two lines shown at the bottom of this post…
The first one, what are you actually trying to do, something like this…
When each item is ready, the value of a text element is set to a value found in that specific item’s data.
$w("#myRepeater").onItemReady( ($item, itemData, index) => {
$item("#myRepeatedText").text = itemData.textField;
} );
As the second line is another function with the event handler just written into the code so you do not need to use the onChange event handler from the properties panel for that element.
export function repeater1_itemReady($item, itemData, index) {
$w("#slider2").onChange((event) => {