Customizing DatafariUI - Search Bar component
Valid from Datafari 6.2 (UI v2 1.1.2)
See end of the page for older versions
This component comes with autocomplete feature with suggesters that can be customized from the ui-config.json file.
Depending on what suggesters are configured into it, the search bar will be displaying suggestions according to the suggesters. User can navigate through it with the keyboard arrows, each selection will update the search bar value. User can press Enter to perform a search.
The searchBar
has the following parameters (Complete configuration file):
Name | Description |
---|---|
| Array of suggesters. Several suggesters can be added, even if they are of the same type : you can add 2 entity suggesters but with different field/suggester. Each suggester result will be displayed in a dedicated section below the search bar. Available suggester types and their parameters are presented below |
| Enable / Disabled the backdrop behind the search bar when it is focused. Default is |
There are 3 types of suggesters :
BASIC
(Suggested queries): basic suggester based on wordsENTITY
(Entities suggested, not present in the screenshot): suggester based on entities like authors namesAUTOPROPOSALS
(Direct access): A suggester that provides document suggestions.
Theses suggesters can be used to configure which suggesters are to be used in the search bar with the autocomplete. See more in these documentations: