Retrieve the items data that is clicked in a repeater

I could accessed to every item of the repeater only setting a handler like this in the normal funcion onClick.

the normal function is:

// This only load the first item from the collection
export function button11_click(event) {
console.log($w(“#dataset1”).getCurrentItem());
}

with the handler $w

//This choose whatever item from the colleption
export function button11_click(event,$w) {
console.log($w(“#dataset1”).getCurrentItem());

}

The trick is just put ----- $w … as the second parameter of the normal onClick funtion.