ant-design-blazor/components/table/RowSelection.razor
James Yeung 63d09f76a5 feat(module: table): add selection (#190)
* feat: add pagination and empty

* fix: indent

* feat(module: table): add checkbox selection

* feat(module: table): add radio selection

* feat: add selected rows
2020-06-05 16:06:23 +08:00

26 lines
700 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
@if (IsHeader)
{
<th class="ant-table-cell ant-table-selection-column">
@if (Type == "checkbox")
{
<Checkbox @bind-Checked="Checked" CheckedChange="HandleCheckedChange" Indeterminate="Indeterminate"/>
}
</th>
}
else
{
<td class="ant-table-cell ant-table-selection-column">
@if (Type == "checkbox")
{
<Checkbox @bind-Checked="Checked" Disabled="Disabled" CheckedChange="HandleCheckedChange"/>
}
else if (Type == "radio")
{
<Radio @bind-Checked="Checked" Disabled="Disabled" CheckedChange="HandleCheckedChange"/>
}
</td>
}