alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

Allow users to return jQuery objects from _rowWriter callback #86

Open ghost opened 10 years ago

ghost commented 10 years ago

I you like to create a complex query plugin and attach it to the rows:

_rowWriter: function(rowIndex, record, columns, cellWriter) { var li = $("

  • ") var div = $("
    ").someCoolPlugin({ action: function() {...} }).appendTo(li);

    return li; }

    Having to return hi.html() will not work. My workaround is to bind 'dynatable:afterUpdate' and instantiate the plugins there on newly created content, but this is not satisfactory.

  • ekomsctr commented 5 years ago

    Hi, i'm interested in this case too. Have you done any considerations about it?

    Thanks