0.0.6 • Published 11 months ago

search-box-category-suggestions v0.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

Search Box Category Suggestions

Props

NameTypeDescription
callback-functionstringName of callback function to be called when category suggestion is clicked
fieldstringName of the category field
delimiterstringThe delimiter used in the category field hierarchy
basePath[] stringArray of base path for the categories.

This component adds functionality to the search box by providing category suggestions. It should be placed inside of the <atomic-search-box> component. The field used needs to be a hierarchical field. The logic for what happens when a suggestion is selected can be placed inside of a script tag in the html document.

<script>
    window.selectCategorySuggestion = function () {
        console.log('put your select category suggestion function logic here');
    }
</script>
<atomic-search-box>
    <search-box-category-suggestions field="ec_category" callback-function="selectCategorySuggestion">
    </search-box-category-suggestions>
</atomic-search-box>

Built With Stencil

0.0.6

11 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago