I implemented jQuery DataTables in my Ember project by creating a component, which, in it's after render event set up a table to work with an asp.net web api.
All works fine. However for the datatables column definitions (which is basically building up a string for a column's text, I would like to have something that will trigger an ember transition, instead of a browser redirect.
As you can see below I'm currently doing an href in the "template" created for a column:
var columnsDef = [
{
"data" : "Name",
"title": "Name",
"render": function (data, type, row, meta) {
return '<a href="/deals/' + row.Id>' + data + "</a>";
}
},
{....
Aucun commentaire:
Enregistrer un commentaire