Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions exclude_columns.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$('#example').dataTable( {
"sDom": 'C<"clear">lfrtip',
"oColVis": {
"aiExclude": [ 0 ]
"amExclude": [ 0 ]
}
} );
} );
Expand All @@ -33,9 +33,9 @@
<h1>Preamble</h1>
<p>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.</p>
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.</p>

<h1>Live example</h1>
<form>
Expand Down Expand Up @@ -486,7 +486,7 @@ <h1>Initialisation code</h1>
$('#example').dataTable( {
"sDom": 'C&lt;"clear"&gt;lfrtip',
"oColVis": {
"aiExclude": [ 0 ]
"amExclude": [ 0 ]
}
} );
} );</pre>
Expand Down
Empty file modified media/js/ColVis.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion style.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>

<h1>Preamble</h1>
<p>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.</p>
<p>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.</p>
<p>Note that this demo requires DataTables 1.7.5 or later.</p>

<h1>Live example</h1>
Expand Down