what i'm trying to do is call a funcation like below, further i want to pass current element (item) to function as parameter.
<tr rv-each-item="items:models">
<td><a href="javascript:selectedItem(item);">{ item:Name }</a></td>
</tr>
var selectedItem = function (item)
{
console.log(item);
}
while searching around i found below discussion helpful but could not solve my problem as it does not implement backbone
https://github.com/mikeric/rivets/issues/554
Rivets.js: When button is clicked, call a function with an argument from a data binding
While working around i found different approaches that can help, posting here if someone can get help or improve if there is any thing needs to.
Option 1
Option 2 Create a custom binder
Option 3 As I was using rivetsjs with backbone, i can also get advantage of events on backbone view