-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implemented filter functionality in the table component
- Loading branch information
1 parent
482eb2b
commit 4a77545
Showing
6 changed files
with
822 additions
and
467 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
22 changes: 22 additions & 0 deletions
22
splunk_add_on_ucc_framework/ucc_ui_lib/src/main/webapp/components/table/TableFilter.jsx
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'; | ||
import Text from '@splunk/react-ui/Text'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function TableFilter(props) { | ||
|
||
return ( | ||
<> | ||
<Text | ||
appearance="search" | ||
placeholder="filter" | ||
onChange={props.handleChange} | ||
/> | ||
</> | ||
) | ||
} | ||
|
||
TableFilter.propTypes = { | ||
handleChange: PropTypes.func | ||
}; | ||
|
||
export default TableFilter; |
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.