ColVis questions

ColVis questions

khaoskhaos Posts: 47Questions: 11Answers: 0
edited February 2011 in Plug-ins
For example on this page http://www.datatables.net/release-datatables/extras/ColVis/theme.html I would like to have the show/Hide Columns between the search and the Show xx Entries instead of on top or in place of the show entries. How do I do this? :)

Also, whats the decoder ring for the sDom: parm? Is there docs on that?
"sDom": '<"H"Cfr>t<"F"ip>' vs "sDom": 'C<"clear">lfrtip'

My humble thanks in advance,

Replies

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin
    sDom is explained here: http://datatables.net/usage/options#sDom . The plug-ins (some of them at least - the appropriate ones) add their own letter (upper case for a plug-in) to the options available. C for ColVis etc.

    So to put the ColVis button where you want, you'd put the 'C' in-between 'fi' (i.e. fCi). You will most likely need to modify the CSS to get the visual aspect correct - sDom just positions the elements in the DOM.

    Allan
  • khaoskhaos Posts: 47Questions: 11Answers: 0
    Great answer. Clickin my funky self over to http://datatables.net/usage/options#sDom :)
This discussion has been closed.