Setting.addSearch method
Setting › addSearch
Official
Add a search component to the setting.Signature:
addSearch(cb: (component: SearchComponent) => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| cb | (component: SearchComponent) => unknown | The callback to add the search component. |
Returns: this — The setting.
Since: 0.9.21
Example:
setting.addSearch((search) => { search.setValue('foo');});