@using WebApp.Services @if (Pages.Count == 0) { No matching records for these filters. } else { @if (Pages.Count > 75) { This preview has @Pages.Count pages. Printing a large set can be slow. } @Pages.Count page@(Pages.Count == 1 ? "" : "s") } Close Print @code { [CascadingParameter] IMudDialogInstance MudDialog { get; set; } = null!; [Parameter, EditorRequired] public IReadOnlyList Pages { get; set; } = []; [Parameter] public bool NewPagePerRecord { get; set; } = true; [Parameter] public string PrintPageStyle { get; set; } = string.Empty; [Parameter] public EventCallback OnPrint { get; set; } private async Task PrintAsync() { if (OnPrint.HasDelegate) await OnPrint.InvokeAsync(); } private void Close() => MudDialog.Close(); }