Skip to content

[EuiDataGrid] Provide a way to highlight a row #4401

@kertal

Description

@kertal

Currently, if you want to highlight a row in data grid you've to implement this in each cell like this:

Bildschirmfoto 2020-12-19 um 07 35 49

Bildschirmfoto 2020-12-19 um 07 33 57

It would be convenient and more effective (less operations) if one could do this per row and not per cell. Maybe data grid could provide a callback triggered by each row that allows the user to add / remove CSS classNames? This would be a flexible way to style a whole row.


Similar request was made in #5004:

Context:

I need to style the entire row with a repeated background, styling every cell in the row wouldn't look the same.

Styling the row

Screenshot 2021-08-03 at 17 39 13

Styling every cell

styling every item

Metadata

Metadata

Assignees

No one assigned

    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