-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type-ahead search to GroupedEnumFilter
Reference-Url: http://v4-archive.patternfly.org/v4/demos/filters/design-guidelines/#type-ahead Reference-Url: http://v4-archive.patternfly.org/v4/components/select/#grouped-checkbox-input-with-filtering Signed-off-by: Radoslaw Szwajkowski <[email protected]>
- Loading branch information
Showing
5 changed files
with
60 additions
and
11 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
11 changes: 11 additions & 0 deletions
11
packages/common/src/components/Filter/SearchableGroupedEnumFilter.tsx
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,11 @@ | ||
import React from 'react'; | ||
|
||
import { GroupedEnumFilter } from './GroupedEnumFilter'; | ||
import { FilterTypeProps } from './types'; | ||
|
||
/** | ||
* GroupedEnumFilter with inline search enabled. | ||
*/ | ||
export const SearchableGroupedEnumFilter = (props: FilterTypeProps) => ( | ||
<GroupedEnumFilter {...props} hasInlineFilter={true} /> | ||
); |
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