File: cell%28%29.node%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 (29 lines) | stat: -rw-r--r-- 949 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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-api group="cells">
	<name>cell().node()</name>
	<summary>Get the DOM element for the selected cell</summary>
	<since>1.10</since>

	<type type="function">
		<signature>cell().node()</signature>
		<description>Get the DOM element for the selected cell</description>
		<returns type="node">The `dt-tag TD` / `dt-tag TH` cell the selector resolved to</returns>
	</type>

	<description>
		This method, used in-combination with the `dt-api cell()` method (and therefore the various selector forms that it allows) will obtain the DOM node for the selected cell, allowing it to be directly manipulated.
	</description>

	<example title="Select a single cell using a jQuery ID selector and add a class"><![CDATA[
var table = $('#example').DataTable();

var cell = table
	.cell( "#importantCell" )
	.node();

$( cell ).addClass( 'warning' );

]]></example>

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