search
To enable or disable the global search plugin
optional
- Type:
boolean
orSearchConfig
- Example: Search and Server-side search
SearchConfig
type has the following properties:
Name | Description | Type | Example |
---|---|---|---|
keyword optional | to initiate with a keyword | string | John |
server optional | to enable server integration | object | Server-side search |
debounceTimeout optional | search debounce timout | number | 1000 (1 second) |
selector optional | to customize searchable fields | function | Search |
ignoreHiddenColumns optional | to avoid search inside hidden columns (default true) | boolean | true or false |
new Grid({
data: [
['John', '[email protected]', '(353) 01 222 3333'],
['Mark', '[email protected]', '(01) 22 888 4444'],
['Eoin', '[email protected]', '(05) 10 878 5554'],
['Nisen', '[email protected]', '313 333 1923']
],
search: true
});
tip
You can customize the search placeholder using the language
config. See Locales.