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

26 lines
922 B
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html-multi">
<css lib="datatables" />
<js lib="jquery" />
<js lib="datatables" />
<title>Multiple tables</title>
<js><![CDATA[
$(document).ready(function() {
$('.dataTable').dataTable();
} );
]]></js>
<info><![CDATA[
Often you might wish to initialise multiple tables with a single statement. This is trivially done by using a jQuery selector which will pick up multiple tables.
All tables are completely independent (i.e. user controlled paging on one table does not effect the others), but they do share the initialisation parameters given (for example if you specific the Spanish language file, all tables will be shown in Spanish).
The example below shows multiple tables initialised with a single line of code, through the use of the `.dataTable` selector (i.e. select all elements which have the class of `dataTable`.
]]></info>
</dt-example>