File: orderClasses.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 (27 lines) | stat: -rw-r--r-- 1,391 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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="option">
	<name>orderClasses</name>
	<summary>Highlight the columns being ordered in the table's body</summary>
	<since>1.10</since>

	<type type="boolean" />
	<default>true</default>

	<description><![CDATA[
		DataTables highlight the columns which are used to order the content in the table's body by adding a class to the cells in that column, which in turn has CSS applied to those classes to highlight those cells.

		This is done by the addition of the classes `sorting_1`, `sorting_2` and `sorting_3` to the columns which are currently being ordered on. The integer value indicates the level of sorting when mutli-column sorting. If more than 3 columns are being ordered upon, the `sorting_3` class is repeated.

		Please note that this feature can affect performance, particularly in old browsers and when there are a lot of rows to be displayed as it is manipulating a large number of DOM elements. As such, this option is available as a feature switch to allow this feature to be disabled with working with old browsers or large data sets.
]]></description>

	<example title="Disable column sorting classes"><![CDATA[
$('#example').dataTable( {
  "orderClasses": false
} );
]]></example>

	<related type="option">ordering</related>
	<related type="option">order</related>
	<related type="api">order()</related>
</dt-option>