23 lines
823 B
Plaintext
23 lines
823 B
Plaintext
<MudOverlay Absolute="Absolute" DarkBackground LockScroll @bind-Visible="Visible" ZIndex="ZIndex">
|
|
<MudStack AlignItems="AlignItems.Center">
|
|
<MudProgressCircular Indeterminate/>
|
|
<MudText>@Message</MudText>
|
|
@if (CancellationTokenSource != null)
|
|
{
|
|
<MudButton OnClick="() => CancellationTokenSource.Cancel()" Disabled="CancellationTokenSource.IsCancellationRequested">Cancel operation</MudButton>
|
|
}
|
|
</MudStack>
|
|
</MudOverlay>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public bool Visible { get; set; }
|
|
[Parameter]
|
|
public string Message { get; set; } = "Loading...";
|
|
[Parameter]
|
|
public bool Absolute { get; set; }
|
|
[Parameter]
|
|
public int ZIndex { get; set; } = 9999;
|
|
[Parameter]
|
|
public CancellationTokenSource? CancellationTokenSource { get; set; }
|
|
} |