We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f0f5b commit 4ccf522Copy full SHA for 4ccf522
src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor
@@ -79,7 +79,14 @@
79
<tr aria-rowindex="@(placeholderContext.Index + 1)">
80
@foreach (var col in _columns)
81
{
82
- <td class="grid-cell-placeholder @ColumnClass(col)" @key="@col">@{ col.RenderPlaceholderContent(__builder, placeholderContext); }</td>
+ var hasCustomPlaceholder = col.PlaceholderTemplate is not null;
83
+ var cssClass = hasCustomPlaceholder
84
+ ? "@ColumnClass(col)"
85
+ : "grid-cell-placeholder @ColumnClass(col)";
86
+
87
+ <td class="@cssClass" @key="@col">
88
+ @{ col.RenderPlaceholderContent(__builder, placeholderContext); }
89
+ </td>
90
}
91
</tr>
92
0 commit comments