Open matteoannibali opened 5 months ago
_createItemsFromHTML: function(){
var that = this, element = this.element;
var body = element.find("tbody");
if (body.length > 0) $.each(body.find("tr"), function(){
var row = $(this);
var tr = [];
$.each(row.children("td"), function(){
var td = $(this);
**tr.push(td.html());** <--perhaps this remove @click event handler?
});
that.items.push(tr);
});
this._createHeadsFromHTML();
this._createFootsFromHTML();
},
set click handler for table and specify it for td
. I don't know how to do it in Angular, but if you use m4q, it will be like this:
$('#table-id').on("click", "td", function(){
const td = this
...
})
I need to preserve the keywords of "viewjs", it must not remove them, I can't call a viewjs method from vanilla js
You can use the event data-on-draw-cell
to generate link https://codepen.io/olton/pen/mdRwqBB?editors=1011
if i put inside a column "ordered" using data-role="table": <a :href="'#" @click="openDialogGroup(group)" >test it disappears when i render the table...
How can i do?