
Table Selection
Set the table row state by setting SelectedRows
, and set the highlight by selecting the style
Defaults to the selected state when the table is initialized by setting the SelectedRows
property collection
Demo
selected row record:
- Zhangsan 0001
- Zhangsan 0002
- Zhangsan 0003
- Zhangsan 0004
@page "/tables/selection"
@inject IStringLocalizer<TablesSelection> Localizer
<h3>@Localizer["TablesSelectionTitle"]</h3>
<h4>@((MarkupString)Localizer["TablesSelectionDescription"].Value)</h4>
<DemoBlock Title="@Localizer["TablesSelectionNormalTitle"]"
Introduction="@Localizer["TablesSelectionNormalIntro"]"
Name="Normal"
Demo="typeof(Demos.Table.TablesSelection.TablesSelectionNormal)">
</DemoBlock>
Error: Response status code does not indicate success: 404 (Not Found).