Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New example: ColReorder with Responsive example
- Loading branch information
Allan Jardine
committed
Feb 10, 2016
1 parent
586bd91
commit 72d502d
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<dt-example table-type="html-wide" order="4" table-class="display nowrap"> | ||
|
||
<css lib="datatables colreorder responsive" /> | ||
<js lib="jquery datatables colreorder responsive"> | ||
<![CDATA[ | ||
$(document).ready(function() { | ||
var table = $('#example').dataTable( { | ||
colReorder: true, | ||
responsive: true, | ||
columnDefs: [ { | ||
targets: 2, | ||
responsivePriority: 10001 | ||
} ] | ||
} ); | ||
} ); | ||
]]> | ||
</js> | ||
|
||
<title lib="ColReorder">Responsive integration</title> | ||
|
||
<info><![CDATA[ | ||
This example shows ColReorder being used with the [Responsive extension for DataTables](https://datatables.net/extensions/colreorder). The _"Position"_ column is the first to be hidden through the use of the `r-init columns.responsivePriority` option, and you'll be able to notice that the hidden column is automatically taken account of by ColReorder as the columns are reordered. | ||
]]></info> | ||
|
||
</dt-example> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters