Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > SearchController object > Methods

JavaScriptAPI: SearchController object > toggleOptions()

Scroll Prev Next More

 

Deprecated

SearchController object methods are deprecated, we recommend using Search API instead.

 

Hides or shows options on the search panel.

Syntax

srch.toggleOptions(value);

Arguments

value

one of the values listed below:

 

Value

Description

hide

Hides the options on the search panel.

show

Shows the options on the search panel.

Return value

No return value.

Example

Show options on the search panel using the JavaScript OnLoad event:

 

var srch = pageObj.getSearchController();
srch.toggleOptions('show');

See also:

About Search API

JavaScript API: SearchField object

Events: JavaScript OnLoad

JavaScript API: SearchController object (deprecated)

JavaScript API