-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blazor Preview 1 WN content (#34706)
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### QuickGrid `RowClass` parameter | ||
|
||
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: | ||
|
||
```razor | ||
<QuickGrid ... RowClass="ApplyRowStyle"> | ||
... | ||
</QuickGrid> | ||
@code { | ||
private string ApplyRowStyle({TYPE} rowItem) => | ||
rowItem.{PROPERTY} == {VALUE} ? "{CSS STYLE CLASS}" : null; | ||
} | ||
``` | ||
|
||
For more information, see <xref:blazor/components/quickgrid?view=aspnetcore-10.0#style-a-table-row-based-on-the-row-item>. | ||
|
||
### Blazor script | ||
|
||
In prior releases of .NET, the Blazor script is served from an embedded resource in the ASP.NET Core shared framework. In .NET 10 or later, the Blazor script is served as a static web asset with automatic compression and fingerprinting. | ||
|
||
For more information, see the following resources: | ||
|
||
* <xref:blazor/project-structure?view=aspnetcore-10.0#location-of-the-blazor-script> | ||
* <xref:blazor/fundamentals/static-files?view=aspnetcore-10.0> |