Skip to main content

search

To enable or disable the global search plugin

SearchConfig type has the following properties:

NameDescriptionTypeExample
keyword optionalto initiate with a keywordstringJohn
server optionalto enable server integrationobjectServer-side search
debounceTimeout optionalsearch debounce timoutnumber1000 (1 second)
selector optionalto customize searchable fieldsfunctionSearch
ignoreHiddenColumns optionalto avoid search inside hidden columns (default true)booleantrue or false
new Grid({
data: [
['John', 'john@example.com', '(353) 01 222 3333'],
['Mark', 'mark@gmail.com', '(01) 22 888 4444'],
['Eoin', 'eo3n@yahoo.com', '(05) 10 878 5554'],
['Nisen', 'nis900@gmail.com', '313 333 1923']
],
search: true
});

tip

You can customize the search placeholder using the language config. See Locales.