Skip to content

Setting.addSearch method

Setting › addSearch

Official

Add a search component to the setting.

Signature:

addSearch(cb: (component: SearchComponent) => unknown): this

Parameters:

Parameter Type Description
cb (component: SearchComponent) => unknown The callback to add the search component.

Returns: thisThe setting.

Since: 0.9.21

Example:

setting.addSearch((search) => {
search.setValue('foo');
});