Can't use spans inside of th? (datatables gets overzealous and adds jquery ui classes to it)

Can't use spans inside of th? (datatables gets overzealous and adds jquery ui classes to it)

the6stepthe6step Posts: 12Questions: 0Answers: 0
edited August 2010 in General
I'm doing a flexible layout and the icons currently if allowed push over the titles. I'm trying to separate them logically with spans (because anything else is not semantic enough, I know I could technically get away with stuff like or whatever), but when I surround the th titles with spans, it goes ahead and assigns jquery ui classes to it. I can't zero out the styles because datatables doesn't calculate the width right.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Oddly enough I've been knocking around in this area of the code recently and came to exactly the same conclusion - it's not a particularly great mechanism DataTables uses at the moment... I've made a note to look at this for DataTables 1.7.2 - the fix would be to store the SPAN that DataTables creates (when using jQuery UI themes) and then operate only on that, rather than using a selector.

    Regards,
    Allan
This discussion has been closed.