Please enable JavaScript to view this site.

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

JavaScriptAPI: SearchController object > display()

Scroll Prev Next More

 

Deprecated

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

 

Hides or shows the search panel, shows search panel as popup.

Syntax

srch.display(value);

Arguments

value - one of the values listed below:

 

Value

Description

hide

Hides the search panel.

popup

Shows the search panel as a popup.

show

Shows the search panel.

Return value

No return value.

Example

Show the search panel using the JavaScript OnLoad event:

 

var srch = pageObj.getSearchController();
srch.display("show");

See also:

About Search API

JavaScript API: SearchField object

Events: JavaScript OnLoad

JavaScript API: SearchController object (deprecated)

JavaScript API