Use Two DOM based Extensions in one DataTable

Use Two DOM based Extensions in one DataTable

hermes980hermes980 Posts: 41Questions: 13Answers: 0

Hi all,

I am using tabletools and would like to use colvis on the same table. However, they are both initiliazed using "dom". Can I put both options together (ex. "dom": 'T<"clear">lfrtip C<"clear">lfrtip',). Or is there another method for using these both on one table?

Thanks,

K.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin
    Answer ✓

    Sure you can. Each letter is a feature, so just put the two letter in... "dom": 'TC<"clear">lfrtip for example. Where you put the letters effect the order in which they appear in the DOM (that's the whole point of the dom option).

    Allan

  • hermes980hermes980 Posts: 41Questions: 13Answers: 0

    Thank you! What if I want the positioning to be different?

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    Change the position of the letter in the string :-). You may also need to use CSS once they are in the document.

    Allan

This discussion has been closed.