Using the ColVis API

Using the ColVis API

thenewerthenewer Posts: 11Questions: 0Answers: 0
edited January 2014 in General
Hi, I am using the ColVis API which is an awesome plugin, just wondering if some kind of drag/drop functionality can be added when the show/hide columns in the example show the list of the columns to display

otherwise awesome dataTables

Regards

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    So you would have two columns, one "Show" and the other "Hide" and you would drag buttons between the two options? Entirely possible, although I would suggest not doing it in ColVis, but in an new plug-in. The `columns().visible()` (1.10+) and fnSetColumnVis (1.9-) methods can be used to set column visibility without ColVis.

    Allan
  • thenewerthenewer Posts: 11Questions: 0Answers: 0
    Hi Allan, Thanks for thye Quick response.

    But if you this example "https://datatables.net/release-datatables/extras/ColVis/exclude_columns.html"

    The show/hide button in the example list down the columns to be displayed in the checbox, i am trying to drag/drop the buttons which are inside the show/hide dropdown to up and down within that, so i can add a custom functionality to that too.

    Hope i made my point clear
This discussion has been closed.