File: search.smart.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 (32 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download | duplicates (5)
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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="option">
	<name>search.smart</name>
	<summary>Enable / disable DataTables' smart filtering</summary>
	<since>1.10</since>

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

	<description>
		DataTables' built-in filtering is "smart" in that it breaks the user's input into individual words and then matches those words in any position and in any order in the table (rather than simple doing a simple string compare).

		Although this can significantly enhance usability of the filtering feature, it uses a complex regular expression to perform this task, and as such it can interfere with a custom regular expression input if you enable that option (`dt-init search.regex`). As such, this option is provided to disable this smart filtering ability.
	</description>

	<example title="Disable smart filtering"><![CDATA[
$('#example').dataTable( {
  "search": {
    "smart": false
  }
} );
]]></example>

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