[Closed] Js Platform - initial panel?
Hi, in Js platform, do we have something like the initialpanel in .net platform? When load the page for the first page, only the search box will be displayed, without any results?
There is nothing out-of-the-box for this, but you can pretty easily add a
<div> where you'll display something similar, and hide the rest of the UI until the first search is performed.
First you need to disable auto query execution using the
autoTriggerQuery option (see https://developers.coveo.com/display/JsSearch/SearchInterface+Component). Then, arrange for all parts of the UI beside your panel to be hidden initially. Then you can use standard
SearchButton components in your div. Once the first query is performed (wait for the
newQuery event), hide your initial panel, show the rest, and that should do it.