Skip to content

feat(table): Differentiate table row build with matNoDataRow directive #23729

Closed
@mrmokwa

Description

@mrmokwa

Feature Description

When using *matNoDataRow directive, it should provide a way to identify that row. I'd suggest adding a class named "mat-no-data-row" .

Use Case

Directive *matNoDataRow
image

Results in
image

I'd like to add a style to mat-row (like on hover, to change cursor to pointer). To achieve this and not affect "no data row", I have to apply a not rule with some identification (id no-data in this example).

image

But if I need to create a global style, I'll need to create a custom pattern (like id="no-data") to all my tables, to apply style to mat-row, without affecting the no-data row.

With a default "mat-no-data-row" I could do something like the example below, without worrying about custom patterns.
image

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions