diff --git a/exclude_columns.html b/exclude_columns.html old mode 100755 new mode 100644 index bd74099..c05932d --- a/exclude_columns.html +++ b/exclude_columns.html @@ -18,7 +18,7 @@ $('#example').dataTable( { "sDom": 'C<"clear">lfrtip', "oColVis": { - "aiExclude": [ 0 ] + "amExclude": [ 0 ] } } ); } ); @@ -33,9 +33,9 @@

Preamble

It can at times be useful to exclude columns from being in the 'show / hide' list (for example if you have hidden information that the end user shouldn't be able to make - visible. This can be done by the oColVis.aiExclude initialisation parameter when creating - the DataTable. This is simply an array of integers, indicating which columns should - be excluded. This example shows the first column being excluded.

+ visible. This can be done by the oColVis.amExclude initialisation parameter when creating + the DataTable. This array can contain a mix of integers or strings (matching the mDataProp value) + indicating which columns should be excluded. This example shows the first column being excluded.

Live example

@@ -486,7 +486,7 @@

Initialisation code

$('#example').dataTable( { "sDom": 'C<"clear">lfrtip', "oColVis": { - "aiExclude": [ 0 ] + "amExclude": [ 0 ] } } ); } ); diff --git a/media/js/ColVis.js b/media/js/ColVis.js old mode 100755 new mode 100644 diff --git a/style.html b/style.html old mode 100755 new mode 100644 index 872dd30..672dc94 --- a/style.html +++ b/style.html @@ -49,7 +49,7 @@

Preamble

-

This demo of ColVis shows a number of different features of the plug-in. Firstly, it shows alternative styling of the plug-in with the button nested just above the scrollbar in the DataTable. Secondly there is a "Restore" button in the ColVis drop down, which will restore the original visibility settings when the table was initialised (this is controlled by using the "bRestore" option). Finally it shows that the drop down can be set to align on the right of the button, rather than the left.

+

This demo of ColVis shows a number of different features of the plug-in. Firstly, it shows alternative styling of the plug-in with the button nested just above the scrollbar in the DataTable. Secondly there is a "Restore" button in the ColVis drop down, which will restore the original visibility settings when the table was initialised (this is controlled by using the "bRestore" option). Thirdly there is a "Show All" button in the ColVis drop down, which will set all non-excluded columns to visible (this is controlled by using the "bShowAll" option). Finally it shows that the drop down can be set to align on the right of the button, rather than the left.

Note that this demo requires DataTables 1.7.5 or later.

Live example