Search box in titlebar

There is a search box in title bar which appears on most Eikon controls. It disappears from the page, as soon as JET API is initialized. My questions are:

1. How to keep that search box in title bar?
2. How can JET API app tap into the semantic search being performed in there?

Thanks,
Gurpreet

Best Answer

  • There is an example in *JET.js - Tutorials and Demos* page. - You can open the page in Eikon by this url: [cpurl://apps.cp./Apps/jet][1] - Or go to Eikon Apps Menu -> Internal -> JET.js - Tutorials and Demos In the left menu, choose *Core Functionality* and then *Enable Command Line* Copied from the example to answer your question: 1. To keep the search box when initialize JET: JET.init({ ID: "JETSample", Toolbar: { commandBars: [{ items: [{ item: "Search" }] }] } }); 2. You could listen on contextChange event: JET.onContextChange(function (contextData) { $("#context").val(JSON.stringify(contextData, undefined, 2)) }) Hope this helps. [1]: http://cpurl://apps.cp./Apps/jet

Answers