1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-28 01:54:15 +01:00

29 lines
630 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html">
<css lib="datatables" />
<css>
th, td { white-space: nowrap; }
#demo { width: 600px; }
</css>
<js lib="jquery" />
<js lib="datatables" />
<title>Scroll - horizontal and vertical</title>
<js><![CDATA[
$(document).ready(function() {
$('#example').dataTable( {
"scrollY": 200,
"scrollX": "100%"
} );
} );
]]></js>
<info><![CDATA[
In this example you can see DataTables doing both horizontal and vertical scrolling at the same time. Note also that pagination is enabled in this example, and the scrolling accounts for this.
]]></info>
</dt-example>