From be0769b4f3e33373dbb50039b17a076a78f2a9e0 Mon Sep 17 00:00:00 2001 From: nadia Date: Fri, 17 Mar 2023 16:59:55 +0500 Subject: [PATCH] feat: custom pager content --- .../Components/Table/MudTable.razor | 9 ++++++++- .../Components/Table/MudTable.razor.cs | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor b/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor index 9e85a61be..9e6b79b8d 100644 --- a/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor +++ b/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor @@ -66,7 +66,14 @@ Loading... - + @if (PagerContent != null) + { + @PagerContent + } + else + { + + } } diff --git a/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor.cs b/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor.cs index 3058de64a..b3ecae6e1 100644 --- a/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor.cs +++ b/src/Sitko.Core.Blazor.MudBlazor/Components/Table/MudTable.razor.cs @@ -29,6 +29,8 @@ namespace Sitko.Core.Blazor.MudBlazorComponents; [Parameter] public RenderFragment? FooterContent { get; set; } + [Parameter] public RenderFragment? PagerContent { get; set; } + [Parameter] public RenderFragment? ToolBarContent { get; set; } [Parameter] public bool Dense { get; set; } [Parameter] public bool Hover { get; set; }