Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 3.32 KB

search-filter-autocomplete-chips.component.md

File metadata and controls

67 lines (57 loc) · 3.32 KB
Title Added Status Last reviewed
Search Filter Autocomplete Chips component
v6.1.0
Active
2023-06-13

Implements a search widget consists of 1 input with autocomplete options representing conditions to form search query.

Search Filter Autocomplete Chips

Basic usage

{
    "search": {
        "categories": [
            {
                "id": "location",
                "name": "Location",
                "enabled": true,
                "component": {
                    "selector": "autocomplete-chips",
                    "settings": {
                        "allowUpdateOnChange": false,
                        "hideDefaultAction": true,
                        "allowOnlyPredefinedValues": false,
                        "field": "SITE",
                        "autocompleteOptions": [ {"value": "Option 1"}, {"value": "Option 2"} ]
                    }
                }
            }
        ]
    }
}

Settings

Name Type Description
field string Field to apply the query to. Required value
autocompleteOptions AutocompleteOption[] Predefined options for autocomplete
allowOnlyPredefinedValues boolean Specifies whether the input values should only be from predefined
allowUpdateOnChange boolean Enable/Disable the update fire event when text has been changed. By default is true
hideDefaultAction boolean Show/hide the widget actions. By default is false

Details

This component allows the user to choose filter options for the search query. See the Search Chip Autocomplete Input component for more details.

See also