Releases: AddSearch/search-ui
v0.4.1
New component: loadMore. Can be used to:
- Add a "Load more results" button instead of pagination. See example
- Create an infinite scroll implementation. See example
Added support for infinite scroll to autocomplete component. See example
v0.4.0
Renewed the logic of how analytics events are sent to AddSearch Analytics Dashboard
- In Search-as-you-type implementations, a search event is sent after 2,5 sec pause in typing, or if a search result is clicked within that debounce time
- Filter changes and result page changes don't fire search events
- Third-party analytics software can be integrated with the analyticsCallback function
This release requires AddSearch JS Client 0.3.0 or newer.
v0.3.4
v0.3.3
This release includes following improvements
- Support for Promotions added to the searchResults component
- Moved the searchResults component's featured image to a separate subtemplate
- Improved component styling across different browsers
v0.3.2
v0.3.1
v0.3.0
The default styles for all components are refined and unified on all browsers. Check out the components demo to see default styles: https://demo.addsearch.com/search-ui-examples/components/
New settings:
- searchField: Control search icon's visibility with the ''icon'' setting
- filters: Clear other filters when a specific filter is enabled with the ''clearOtherFilters'' setting. The primary use case is to clear tab-specific filters when a tab is switched
v0.2.3
Added a callback function to call after an autocomplete box is shown. This can be used, for example, to align the autocomplete box.
function autocompleteShown(container) {
console.log(container);
}
searchui.autocomplete({
containerId: 'autocomplete',
onShow: autocompleteShown,
...
Added a new example with (almost) all components in use:
v0.2.2
v0.2.1
Click tracking support added to autocomplete component. The link must have a data-analytics-click attribute with the docid as value.
<a href="{{url}}" data-analytics-click="{{id}}">{{title}}</a>
New experimental component segmentedResults to show federated search results in different lists by content type.
searchui.segmentedResults({
containerId: 'container',
client: clientWithFilters,
template: handlebarsTemplate
});