Namespace: oSearch

Ancestry: DataTable » .defaults. » oSearch

DataTables v1.9.0 documentation

Navigation

Hiding private elements (toggle)
Showing extended elements (toggle)

This parameter allows you to have define the global filtering state at initialisation time. As an object the "sSearch" parameter must be defined, but all other parameters are optional. When "bRegex" is true, the search string will be treated as a regular expression, when false (default) it will be treated as a straight string. When "bSmart" DataTables will use it's smart filtering methods (to word match at any point in the data), when false this will not be done.

Example

   $(document).ready( function() {
     $('#example').dataTable( {
       "oSearch": {"sSearch": "Initial search"}
     } );
   } )

Extends

Summary

Properties

<static> bCaseInsensitive :boolean
Flag to indicate if the filtering should be case insensitive or not
<static> bRegex :boolean
Flag to indicate if the search term should be interpreted as a regular expression (true) or not (false) and therefore and special regex characters escaped.
<static> bSmart :boolean
Flag to indicate if DataTables is to use its smart filtering or not.
<static> sSearch :string
Applied search term

Details

Properties

<static> bCaseInsensitive :boolean

Flag to indicate if the filtering should be case insensitive or not

Extended from:
<static> bRegex :boolean

Flag to indicate if the search term should be interpreted as a regular expression (true) or not (false) and therefore and special regex characters escaped.

Extended from:
<static> bSmart :boolean

Flag to indicate if DataTables is to use its smart filtering or not.

Extended from:
<static> sSearch :string

Applied search term

Extended from: