Skip to content
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

feat(ui5-multi-combobox): introduces filter property #2088

Merged
merged 4 commits into from
Nov 17, 2020

Conversation

MapTo0
Copy link
Member

@MapTo0 MapTo0 commented Aug 13, 2020

Available filters are

  • StartsWithPerTerm
  • StartsWith
  • Contains
  • None

FIXES: #799

Buildin filters are
 - StartsWithPerTerm
 - StartsWith
 - Contains
 - None

FIXES: #799
* @defaultvalue "StartsWithPerTerm"
* @public
*/
filter: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be string, but an enum

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MultiComboBox has not really a use case for e.g. contains filter, for the end user the API works fine (the same way as an enum), we can discuss this internally if it is worth to be changed.

StartsWithPerTerm,
StartsWith,
Contains,
None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a real use-case for this filter?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case the user wants to have a free text without filtering or implement filtering on the backend this would be a solution.

vladitasev
vladitasev previously approved these changes Sep 24, 2020
@MapTo0
Copy link
Member Author

MapTo0 commented Nov 17, 2020

FIXES: #1735

@MapTo0 MapTo0 merged commit 03cae4b into master Nov 17, 2020
@MapTo0 MapTo0 deleted the mcb-custom-filtering branch November 17, 2020 12:24
ndeshev pushed a commit to ndeshev/ui5-webcomponents that referenced this pull request Nov 18, 2020
Build-in filters are

 - StartsWithPerTerm
 - StartsWith
 - Contains
 - None

Users can now set filter to None and filter when input event is fired

FIXES: SAP#799
ilhan007 pushed a commit that referenced this pull request Nov 19, 2020
Build-in filters are

 - StartsWithPerTerm
 - StartsWith
 - Contains
 - None

Users can now set filter to None and filter when input event is fired

FIXES: #799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiComboBox - Adding customizable search function
2 participants