The module supports the plugin colvis? allowing the user to show / hide columns?

Comments

alexandreluiz’s picture

Component: User interface » Code
morybel’s picture

Issue summary: View changes

Need this too, how to I add the clovis show hide ?

stephenb001’s picture

I am currently converting a D6 site to D7 and it uses the ColVis feature on a number of tables.
I checked the DataTables D6 version with the one I have and it looks like the previous developer has made changes to he could use ColVis.
Are you working on getting ColVis and other plugins working for D7?

morybel’s picture

For my part, I have achieved some results but not with the module itself.

I added this code to my html.tpl.php and it's working so far.

<script type="text/javascript" charset="utf-8" src="sites/all/modules/datatables/dataTables/media/js/jquery.dataTables.js"></script><script type="text/javascript" src="sites/all/modules/datatables/dataTables/extras/ColVis/media/js/ColVis.js"></script>
        <script type="text/javascript" charset="utf-8">
$(document).ready( function () {
    $('#example').dataTable( {
        "sDom": 'C<"clear">lfrtip'
    } );
} );
        </script>

I don't think there is a lot of development since the D7 port.

stephenb001’s picture

I have managed to get the ColVis to work, but I haven't had time to fully test the changes yet.
I'm not sure about the Views section as I only modified the theme_datatable function.

icecreammocca’s picture

ColVis working fine in my site Drupal 7 using guide from mory, but i found some problem, when using pagination/pager, in the next page ColVis can't working or not hide a column.

dqd’s picture

Status: Active » Closed (cannot reproduce)

Due to trouble to reproduce now after years and inactivity for years and because of upcoming EOL of Drupal 7 I set it to Closed. Thanks for taking the time to report and work on this! Feel free to create a new issue with patches for upcoming versions if this feature is sill required. Read more about here: https://www.drupal.org/about/drupal-7/d7eol/partners