-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* React-Table 8 Upgrade Initial Commit: Basic table renders with first page of data. No pagination, sorting, or filtering yet. * Add functional pagination, sorting, filtering * Restore Data Table Header and all functionality. Some style upgrades * Fix various functionality bugs * Fix keyboard a11y * update lockfile * Add aria-label to column resizer * Bump to 1.17.0 * Update node version
- Loading branch information
1 parent
bfe6dd5
commit e3078e0
Showing
18 changed files
with
6,615 additions
and
3,865 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
|
||
function ColumnFilter({ | ||
column: { getFilterValue, setFilterValue, Header }, | ||
resourceState | ||
}) { | ||
|
||
return ( | ||
<input | ||
aria-label={Header} | ||
value={getFilterValue() || ''} | ||
onChange={(e) => { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
setFilterValue(e.target.value || undefined); // Set undefined to remove the filter entirely | ||
}} | ||
placeholder={`Search ${resourceState.count} records...`} | ||
/> | ||
); | ||
}; | ||
|
||
export default ColumnFilter; |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.