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

Clear Filters #254

Open
NilsJPWerner opened this issue May 21, 2021 · 1 comment
Open

Clear Filters #254

NilsJPWerner opened this issue May 21, 2021 · 1 comment

Comments

@NilsJPWerner
Copy link

It would be great to be able to add a clear filter and/or clear all filters button to qor.

@NilsJPWerner
Copy link
Author

I was able to create a hacky solution by adding this action:

	resource.Action(&admin.Action{
		Name: "Clear Filters",
		URL: func(record interface{}, context *admin.Context) string {
			return context.Request.URL.Path
		},
		Modes: []string{"collection"},
	})

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

No branches or pull requests

1 participant