algolia / instantsearch-ios

⚡️ A library of widgets and helpers to build instant-search applications on iOS.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/ios/
Apache License 2.0
591 stars 55 forks source link

feat(dynamicFacetList): add default selection & faceting parameters #272

Closed VladislavFitz closed 1 year ago

VladislavFitz commented 1 year ago

Summary

This PR adds defaultSelectionMode and defaultFilterGroupType parameters to DynamicFacetList components to customize their default behaviour. It will replace the hardcoded single selection, and filter group type.

Result

Developers allowed to set the default selection type and filter group type for DynamicFacetList component instead of hardcoded single selection and conjunctive (and) group type. It helps to avoid boilerplate code in case of big amount of facet attributes which supposed to behave differently from the hardcoded values.