Skip to content

[EuiComboBox] Custom matcher requested #2199

@flash1293

Description

@flash1293

The combo box component matches items strictly by checking whether the typed string appears as a substring in the label of one of the options. In same cases it would be beneficial to overwrite this behavior with a custom matching function if that makes sense for the options shown in the combo box.

Example: Combo box with field names - here it would be nice to match by prefix per dot-separated part of the field name, typing r.b.by should match http.response.body.bytes. Especially for ECS like data with long field names and a lot of fields in a single index this makes selecting the right field much easier.

Another example (even though I don't have a specific use case for that) would be a fuzzy search which allows small typing errors like missing characters or swapped characters.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions