<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Setting`](Setting) › [`addSearch`](Setting/addSearch) ## Setting.addSearch() method 0.9.21 **Signature:** ```typescript addSearch(cb: (component: SearchComponent) => any): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>cb</code> | <code>(component: </code>[`SearchComponent`](SearchComponent)<code>) =&gt; any</code> | | **Returns:** `this`