simple.xml 812 字节
Newer Older
A
Anthony Mutisya 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html" order="1">

<css lib="datatables tabletools" />
<js lib="jquery datatables tabletools">
<![CDATA[
$(document).ready(function() {
	$('#example').DataTable( {
		dom: 'T<"clear">lfrtip'
	} );
} );
]]>
</js>

<title lib="TableTools">Basic initialisation</title>

<info><![CDATA[

This example shows the basic initialisation of TableTools by simply including the `dt-string T` option in DataTables' `dt-init dom` parameter. This tell DataTables to insert the TableTools toolbar in that location. Remember to include the Javascript and CSS source files as well!

It is worth noting that you might need to [set the `sSwfPath` parameter](swf_path.html) to tell TableTools where to find the SWF file for copy and file save.

]]></info>

</dt-example>