Skip to content

Commit fffaf07

Browse files
authored
[Blazor] What (#34818)
1 parent dcfdee7 commit fffaf07

File tree

1 file changed

+4
-4
lines changed
  • aspnetcore/release-notes/aspnetcore-10/includes

1 file changed

+4
-4
lines changed

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
### QuickGrid `RowClass` parameter
22

3-
Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `ApplyRowStyle` method is called on each row to conditionally apply a stylesheet class based on the row item:
3+
Apply a stylesheet class to a row of the grid based on the row item using the new `RowClass` parameter. In the following example, the `GetRowCssClass` method is called on each row to conditionally apply a stylesheet class based on the row item:
44

55
```razor
6-
<QuickGrid ... RowClass="ApplyRowStyle">
6+
<QuickGrid ... RowClass="GetRowCssClass">
77
...
88
</QuickGrid>
99
1010
@code {
11-
private string ApplyRowStyle({TYPE} rowItem) =>
12-
rowItem.{PROPERTY} == {VALUE} ? "{CSS STYLE CLASS}" : null;
11+
private string GetRowCssClass(MyGridItem item) =>
12+
item.IsArchived ? "row-archived" : null;
1313
}
1414
```
1515

0 commit comments

Comments
 (0)