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>
|