Skip to content

[EuiSelectable] onFocusBadge should be customizable per item #4361

@myasonik

Description

@myasonik

onFocusBadge is currently a boolean or a custom badge. For Kibaba, where we have multiple item types, we need a custom badge per item.

Would be good if onFocusBadge supported passing in a callback which could run on each option to create a custom badge. Alternatively, maybe onFocusBadge needs to be moved into the rendered option itself and not be something managed by EuiSelectable? Rather, an option gets a isFocused flag passed into it?

Multiple ways to accomplish this probably.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale-issue(Don't delete - used for automation)stale-issue-closed(Don't delete - used for automation)

    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