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:
•JavaScript API: SearchField object
•JavaScript API: SearchController object (deprecated)