LANCommander/LANCommander.Client/UI/Components/SplitPane.razor
Pat Hartl f2127e4987 Add split pane to library view, working game install
Implemented a basic way to queue games using DownloadService. Games will download and extract without blocking UI, but more needs to be done to reflect the game in UI and database.
2024-05-25 15:40:31 -05:00

22 lines
No EOL
594 B
Text

@inject IJSRuntime JS
<CascadingValue Value="this" IsFixed="@true">
<div id="split-pane-@(PaneId.ToString())" class="split-pane @Class">
@ChildContent
</div>
</CascadingValue>
@code {
[Parameter] public RenderFragment ChildContent { get; set; }
[Parameter] public string Class { get; set; } = "";
private IList<Pane> Panes = new List<Pane>();
private Guid PaneId = Guid.NewGuid();
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
await JS.InvokeVoidAsync("SplitPane.Init", PaneId);
}
}