From bd5f1a16ec2ec55b6ef577b85684fcf73d27be7d Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 10 Sep 2023 02:16:53 -0500 Subject: [PATCH] Add selection to file table --- .../Components/FileManagerComponents/FileManager.razor | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LANCommander/Components/FileManagerComponents/FileManager.razor b/LANCommander/Components/FileManagerComponents/FileManager.razor index f4d9c46..7d73c23 100644 --- a/LANCommander/Components/FileManagerComponents/FileManager.razor +++ b/LANCommander/Components/FileManagerComponents/FileManager.razor @@ -84,7 +84,9 @@ HidePagination="true" Loading="Entries == null" OnRow="OnRow" + @bind-SelectedRows="Selected" Size="@TableSize.Small"> + @if (context is FileManagerFile) { @@ -110,6 +112,9 @@ @code { [Parameter] public Guid ArchiveId { get; set; } [Parameter] public string WorkingDirectory { get; set; } + [Parameter] public bool SelectMultiple { get; set; } = true; + [Parameter] public IEnumerable Selected { get; set; } = new List(); + [Parameter] public EventCallback> SelectedChanged { get; set; } FileManagerDirectory Path { get; set; }