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