With row.add()/row.data() we can only set class and data attributes on initialization

With row.add()/row.data() we can only set class and data attributes on initialization

RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
edited January 2014 in General
I'm wondering why the row.data() function calls only set the html, but disregard the class/data?

If it's for backward compatibility, then it'd be nice to have the possibility to at least set two boolean parameters like replaceData/replaceClass to true whenever we want to override these on the row, or something... :)

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I don't quite understand I'm afraid. Can you show me a code example? Are you using DT_RowClass or passing in an HTML string, or something else?

    Allan
  • RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
    ah sry.. as i was going through the source on github, i found out you already addressed this issue.. nevermind my question, and thanks for fixing it... it's time for me to update the full source :)
This discussion has been closed.