Last active
February 25, 2020 18:32
-
-
Save Blezzoh/1dbe31a76d6d080bd5f24bb564c387c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// any header without filter key will use the text filter function | |
// any header without Filter key will use the default filter component | |
const headers = [ | |
{ | |
Header: "First", | |
accessor: "first" | |
}, | |
{ | |
Header: "Last", | |
accessor: "last" | |
}, | |
{ | |
Header: "Birthday", | |
accessor: "birthday", | |
// filter function is year | |
filter: "year" | |
}, | |
{ | |
Header: "Zip", | |
accessor: "zip", | |
// fitler component is a ZipComponent | |
Filter: ZipComponent | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment