I have used this successfully in a single plugin, but it was so difficult to implement I am considering removing it the next time I need to rework the UI in that plugin.
I am specifically binding on ROW_INITIALIZED
. I can’t share my exact plugin, but would a simple JS file with a simple table working be useful? I should be able to whip something up.
I noticed that you’re calling .bind()
on $(document)
, but I am calling bind on the object returned from the new AJS.RestfulTable
call. This isn’t a good example, I wrote it from memory, but:
new AJS.RestfulTable({
el: $('#my-table'),
resources: {
...
},
columns: [
{
...
}
]
}).bind(AJS.RestfulTable.Events.ROW_INITIALIZED, function (context) {
...
});
For me this worked fine, but I’m not sure how I stumbled on it. I may have just dug around the jira source code.