File: tables%28%29.body%28%29.xml

package info (click to toggle)
datatables.js 1.11.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,848 kB
  • sloc: javascript: 65,075; xml: 10,712; php: 4,741; sh: 544; makefile: 18
file content (32 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8" ?>
<dt-api group="tables">
	<name>tables().body()</name>
	<summary>Get the `dt-tag tbody` nodes for the tables in the API's context</summary>
	<since>1.10</since>

	<type type="function">
		<signature>tables().body()</signature>
		<description>Get the `dt-tag tbody` nodes</description>
		<returns type="DataTables.Api">DataTables API instance with the table body nodes from the selected tables in the result set.</returns>
	</type>

	<description>
		DataTables and its plug-ins can create additional tables in the document. For example when scrolling is enabled, the table is split into three individual tables, the header, footer and body in order to provide cross-browser scrolling, while FixedHeader / FixedColumns create cloned tables for static positioning.

		This method, and its singular counterpart, are provided to give easy access to the original `dt-tag tbody` elements for DOM manipulation.
	</description>

	<example title="Add a class to the original `dt-tag tbody` element"><![CDATA[
var tables = $('.dataTable').DataTable( {
	scrollX: "100%"
} );

tables
	.tables()
	.body()
	.to$()
	.addClass( 'highlight' );
]]></example>

	<related type="api">table().body()</related>
</dt-api>