Skip to content

iFixedColumnsRight #3

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

Merged
merged 1 commit into from
Dec 17, 2012
Merged
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
25 changes: 14 additions & 11 deletions fixedcolumns.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico">

<title>ColReorder example</title>
<style type="text/css" title="currentStyle">
@import "../../media/css/demo_page.css";
@import "../../media/css/demo_table.css";
@import "media/css/ColReorder.css";
.FixedColumns_Cloned th { background-color: white; }
td.index { background-color: white; border-right: 1px solid black; }
td.grade { background-color: white; border-left: 1px solid black; }
table.display th.sorting_disabled { border-bottom: 1px solid white; }
</style>
<script type="text/javascript" charset="utf-8" src="../../media/js/jquery.js"></script>
Expand All @@ -33,11 +34,13 @@
}
},
"aoColumnDefs": [
{ "bSortable": false, "sClass": "index", "aTargets": [ 0 ] }
{ "bSortable": false, "sClass": "index", "aTargets": [ 0 ] },
{ "bSortable": false, "sClass": "grade", "aTargets": [ 5 ] }
],
"aaSorting": [[ 1, 'asc' ]],
"oColReorder": {
"iFixedColumns": 1
"iFixedColumns": 1,
"iFixedColumnsRight": 1
}
} );
new FixedColumns( oTable );
Expand All @@ -49,15 +52,15 @@
<div class="full_width big">
ColReorder example with FixedColumns
</div>

<h1>Preamble</h1>
<p>While ColReorder works great with scrolling in DataTables (and thus FixedColumns),
<p>While ColReorder works great with scrolling in DataTables (and thus FixedColumns),
it also presents an additional option called 'iFixedColumns' which allows you to not
let the user reorder certain columns (specific the number given, counting left to
right). So in the case of FixedColumns this is useful because you typically won't want
to let your fixed column be reordered. This is shown below in the FixedColumns index column
example.</p>

<h1>Live example</h1>
<form>
<div id="demo">
Expand Down Expand Up @@ -548,8 +551,8 @@ <h1>Live example</h1>
</div>
</form>
<div class="spacer"></div>


<h1>Examples</h1>
<ul>
<li><a href="index.html">Basic initialisation</a></li>
Expand All @@ -565,8 +568,8 @@ <h1>Examples</h1>
<li><a href="state_save.html">State saving of the column position</a></li>
<li><a href="theme.html">jQuery UI theme integration</a></li>
</ul>


<h1>Initialisation code</h1>
<pre>$(document).ready( function () {
var oTable = $('#example').dataTable( {
Expand All @@ -592,7 +595,7 @@ <h1>Initialisation code</h1>
} );
new FixedColumns( oTable );
} );</pre>

<div id="footer" style="text-align:center;">
<span style="font-size:10px;">
ColReorder and DataTables &copy; Allan Jardine 2010
Expand Down
Loading