Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openFilters configuration option #579

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

vanbroup
Copy link
Contributor

The default behavior of the filter display is to show values only when there is one filter with six or fewer values. This PR adds a configuration option called openFilters that allows users to include a list of filter names that will open by default, regardless of the number of filters or values present.

new PagefindUI({
    element: "#search",
+    openFilters: ['Tags','Type']
});

@bglw
Copy link
Contributor

bglw commented Mar 26, 2024

Nice one! Thanks for the contribution 😄

@bglw bglw merged commit aab74d6 into CloudCannon:main Mar 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants