2024-12-12 17:35:52 -06:00
|
|
|
@inherits FeedbackComponent<IEnumerable<DataTableColumn>, IEnumerable<DataTableColumn>>
|
|
|
|
|
@namespace LANCommander.Server.UI.Components
|
|
|
|
|
|
2025-12-09 00:16:32 -06:00
|
|
|
<Flex Direction="FlexDirection.Vertical" Justify="FlexJustify.SpaceBetween" Style="height: 100%;">
|
2024-12-31 18:21:41 -06:00
|
|
|
<Space Direction="SpaceDirection.Vertical">
|
2024-12-14 20:11:59 -06:00
|
|
|
@foreach (var column in Options)
|
|
|
|
|
{
|
|
|
|
|
<SpaceItem>
|
|
|
|
|
<Switch @bind-Checked="column.Visible" /> @column.Name
|
|
|
|
|
</SpaceItem>
|
|
|
|
|
}
|
|
|
|
|
</Space>
|
2024-12-12 17:35:52 -06:00
|
|
|
|
2025-12-09 00:16:32 -06:00
|
|
|
<Button Type="@ButtonType.Primary" Block OnClick="Apply">Apply</Button>
|
2024-12-14 20:11:59 -06:00
|
|
|
</Flex>
|
2024-12-12 17:35:52 -06:00
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
|
|
|
|
|
async Task Apply()
|
|
|
|
|
{
|
|
|
|
|
DrawerRef<IEnumerable<DataTableColumn>> drawerRef = base.FeedbackRef as DrawerRef<IEnumerable<DataTableColumn>>;
|
|
|
|
|
|
|
|
|
|
await drawerRef!.CloseAsync(Options);
|
|
|
|
|
}
|
|
|
|
|
}
|