File: row%28%29.node%28%29.xml

package info (click to toggle)
datatables.js 1.10.21%2Bdfsg-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,604 kB
  • sloc: javascript: 64,254; xml: 10,441; php: 4,623; sh: 523; makefile: 21
file content (32 lines) | stat: -rw-r--r-- 1,257 bytes parent folder | download | duplicates (6)
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="rows">
	<name>row().node()</name>
	<summary>Get the row `dt-tag TR` node for the selected row.</summary>
	<since>1.10</since>

	<type type="function">
		<signature>row().node()</signature>
		<description>Obtain the `dt-tag tr` node for the selected row</description>
		<returns type="node">`dt-tag tr` element of the selected row or null if the element is not yet available</returns>
	</type>

	<description>
		This method is used to get the `dt-tag tr` node of row matched by the `dt-api row()` selector used.

		Please be aware that using `dt-init deferRender` will cause some nodes to be created only when they are required for display, so they might not be immediately available when this method is called.

		As a singular function, `dt-api row().node()` operates on only a single row and will truncate other rows if more than one is found to match the selector used. Use `dt-api rows().nodes()` if you require to work with multiple rows.
	</description>

	<example title="Add a class to a specific row"><![CDATA[
var table = $('#example').DataTable();

var row = table
	.row( '#row-4' )
	.node();

$(row).addClass( 'ready' );
]]></example>

	<related type="api">rows().nodes()</related>
</dt-api>