-
Notifications
You must be signed in to change notification settings - Fork 733
Add text-based filter in members page for Member names #1427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1cfca44
88b17d6
1b520cb
7caed9f
6ba791d
ecf744a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FilterConfigType } from '@/shared/modules/filters/types/FilterConfig'; | ||
import { | ||
StringFilterConfig, | ||
StringFilterOptions, | ||
StringFilterValue, | ||
} from '@/shared/modules/filters/types/filterTypes/StringFilterConfig'; | ||
import { itemLabelRendererByType } from '@/shared/modules/filters/config/itemLabelRendererByType'; | ||
import { apiFilterRendererByType } from '@/shared/modules/filters/config/apiFilterRendererByType'; | ||
|
||
const memberName: StringFilterConfig = { | ||
id: 'memberName', | ||
label: 'Member name', | ||
iconClass: 'ri-account-circle-line', | ||
type: FilterConfigType.STRING, | ||
options: {}, | ||
itemLabelRenderer( | ||
value: StringFilterValue, | ||
options: StringFilterOptions, | ||
): string { | ||
return itemLabelRendererByType[FilterConfigType.STRING]( | ||
'Member name', | ||
value, | ||
options, | ||
); | ||
}, | ||
apiFilterRenderer(value: StringFilterValue): any[] { | ||
return apiFilterRendererByType[FilterConfigType.STRING]('displayName', value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also if you notice on And since we are not passing any include value, the filter is getting updated like this: Can you also update the following:
This won't render the Include Checkbox. It's just a fix to make sure that we don't render (exclude) when we are actually including. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alright, changes made :) |
||
}, | ||
}; | ||
|
||
export default memberName; |
Uh oh!
There was an error while loading. Please reload this page.