ml-opensource / admin-panel-template-reactjs

25 stars 10 forks source link

Feature: Page Filter #66

Closed geekonthemove closed 3 years ago

geekonthemove commented 3 years ago

Page Filter

What are you adding?

A reusable page filter component, that adds the selected filter values to the search params / query string, and can be retrieved used the useSearchParam hook, or the general window object.

The PageFilter examples can probably be cleaned up a bit more, and made a bit more explanatory. But I think for now it is fine to have it merged in.

Currently working on a way to trigger submit and "reset" from outside of the PageFilter component. But that will come in another PR.

Breaking changes?

Removed single quotes from format and lint scripts in package.json as it wasn't working on my Windows machine. Please verify that it still works on Mac.

Related PR

None.