File: columns.searchable.xml

package info (click to toggle)
datatables.js 1.10.20%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 6,620 kB
  • sloc: xml: 10,436; php: 4,511; sh: 522; makefile: 21
file content (38 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="columns">
	<name>columns.searchable</name>
	<summary>Enable or disable search on the data in this column</summary>
	<since>1.10</since>

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

	<description>
		Using this parameter, you can define if DataTables should include this column in the filterable data in the table. You may want to use this option to disable search on generated columns such as 'Edit' and 'Delete' buttons for example.
	</description>

	<example title="Disable search on the first column with `dt-init columnDefs`"><![CDATA[
$('#example').dataTable( {
  "columnDefs": [
    { "searchable": false, "targets": 0 }
  ]
} );
]]></example>

	<example title="Disable search on the first column with `dt-init columns`"><![CDATA[
$('#example').dataTable( {
  "columns": [
    { "searchable": false },
    null,
    null,
    null,
    null
  ] } );
} );
]]></example>

	<related type="option">search</related>
	<related type="api">search()</related>
	<related type="api">column().search()</related>
	<related type="api">columns().search()</related>
</dt-option>