mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
25 lines
946 B
XML
25 lines
946 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<dt-example table-type="html">
|
|
|
|
<css lib="datatables" />
|
|
<js lib="jquery" />
|
|
<js lib="datatables" />
|
|
|
|
<title>Hidden columns</title>
|
|
<js><![CDATA[
|
|
$(document).ready(function() {
|
|
$('#example').dataTable( {
|
|
"columnDefs": [
|
|
{ "targets": [ 2 ], "visible": false, "searchable": false },
|
|
{ "targets": [ 3 ], "visible": false }
|
|
]
|
|
} );
|
|
} );
|
|
]]></js>
|
|
|
|
<info>
|
|
There are times when you might find it useful to display only a sub-set of the information that was available in the original table. For example you might want to reduce the amount of data shown on screen to make it clearer for the user. This hidden data can still be filtered upon allowing the user access to that data (for example 'tag' information for a row entry), or this can be disabled. In the table below both the platform and engine version columns have been hidden, the former is searchable, the latter is not.
|
|
</info>
|
|
|
|
</dt-example>
|