File: columns.cellType.xml

package info (click to toggle)
datatables.js 1.10.13%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,232 kB
  • ctags: 1,329
  • sloc: xml: 10,249; php: 4,387; sh: 492; makefile: 21
file content (28 lines) | stat: -rw-r--r-- 880 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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="columns">
	<name>columns.cellType</name>
	<summary>Cell type to be created for a column</summary>
	<since>1.10</since>

	<type type="string" />
	<default value="td" />

	<description>
		Change the cell type created for the column - either `tag TD` cells or `tag TH` cells.

		This can be useful as `tag TH` cells have semantic meaning in the table body, allowing them to act as a header for a row (you may wish to add `scope='row'` to the `tag TH` elements using `dt-init columns.createdCell` option).
	</description>

	<example title="Have the first column use TH cells`"><![CDATA[
$('#example').dataTable( {
  "ajax": "json.txt",
  "columnDefs": [ {
    "targets": 0,
    "cellType": "th"
  } ]
} );
]]></example>

	<related type="option">ajax</related>
	<related type="option">columns.createdCell</related>
</dt-option>