mRender on column thead>th, not tbody>td?

mRender on column thead>th, not tbody>td?

kgosserkgosser Posts: 2Questions: 0Answers: 0
edited May 2013 in General
Hello all,

I'm curious if it's possible to wrap a column header, the s in the , in stead (or in addition to) normal table cells. Currently, I can only seem to have mRender impact the normal table body cells.

Follow up: if there is a better way to wrap content in the s, could someone direct me to that.

Thanks for the help.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Currently no - DataTables doesn't have a built in method of doing that. However, its trivial using jQuery: `$('thead th').wrapAll('')` ( http://api.jquery.com/wrapAll/ ).

    Allan
  • kgosserkgosser Posts: 2Questions: 0Answers: 0
    Noted, thanks for the feedback, Allan. I figured I would check to see if there was an existing method first before I broke out some jQuery.

    Thanks! Btw, love the plugin. Spry did a great job.
This discussion has been closed.