Built-in widgets
IBM Watson® Explorer oneWEX Application Builder ships with a set of built-in widgets you can use to display information in your application. The properties of these widgets are described here.
To edit the properties of a widget, click the top row of a widget and click Edit (). A sidebar opens with the properties for this widget. These properties vary depending on which type of widget you are editing.
General properties
The following properties are common to some widgets.
- Show widget frame
- Specify whether the widget frame, which has a title bar with minimize and maximize icons, should be displayed.
- Show border
- Specify whether the widget frame should have a visible border. Only available if Show widget frame is selected.
- Title
- Provide a widget title shown on the title bar. If empty, the widget's title bar is not displayed. Only available if Show widget frame is selected.
- Hide if no content
- Specify whether to hide the widget if no content is to be displayed.
Layout widgets
The following widgets are available in the Layout page.
Widget | Description and properties |
---|---|
Search Input () | Create a search box.
|
HTML () | Display HTML content.
|
Image () | Display an image.
Image files uploaded by the Image
widget are stored in an internal database as binary data. If you want to access image files located
in the local file system, you can place the images in the
|
Navigation () | Add links to other pages in this application.
|
Basic widgets
The following widgets appear in the Basic set of built-in widgets. See the previous section for descriptions of the Search Input, HTML, and Image widgets.
Widget | Description and properties |
---|---|
Result List () | Display search results.
|
Result Details () | Show the details for the selected item when clicking on an item from the result list.
|
Refinement () | Restrict the search results on a page to the selected facet or facets.
|
Chart () | Display content in a graphical form.
|
Custom () | Build a custom widget. For more information, see Creating custom widgets. |
Pagination | Display the number of pages, the number of search results, and links to specific pages. In the earlier releases, it was integrated into the Result List widget. |
Recommendation widgets
The following widgets appear in the Recommendation set of built-in widgets.
Widget | Description and properties |
---|---|
Clustering () | Generate document clusters from the results of the current search.
|
Query Recommendation () | Display recommended query strings based on the current search.
|
Document Recommendation () | Display recommended documents based on the current search.
|
Customizable built-in widgets
Some of the built-in widgets are implemented based on the Custom widgets, and they are fully customizable by modifying the code. Such widgets include Result List, Result Details, Sort, Recommend Document, Html, Pagination, Bootstrap Pagination, and Query Recommendation.