From 3684791aed4df001a500c173b564117e7e3993c6 Mon Sep 17 00:00:00 2001 From: Shawn Grubbs Date: Sun, 24 Sep 2023 18:46:29 -0500 Subject: [PATCH 1/2] Add support for MatTableFooter --- src/MatBlazor/Components/MatTable/BaseMatTable.cs | 6 ++++++ src/MatBlazor/Components/MatTable/MatTable.razor | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/MatBlazor/Components/MatTable/BaseMatTable.cs b/src/MatBlazor/Components/MatTable/BaseMatTable.cs index 20541703..e5c5366d 100644 --- a/src/MatBlazor/Components/MatTable/BaseMatTable.cs +++ b/src/MatBlazor/Components/MatTable/BaseMatTable.cs @@ -77,6 +77,12 @@ public class BaseMatTable : BaseMatDomComponent [Parameter] public string HeaderRowClass { get; set; } + /// + /// Specifies a custom class for the MatTableFooter row + /// + [Parameter] + public string FooterRowClass { get; set; } + /// /// Specifies a custom class for the MatTableRow /// diff --git a/src/MatBlazor/Components/MatTable/MatTable.razor b/src/MatBlazor/Components/MatTable/MatTable.razor index f3e07d73..d37c60e8 100644 --- a/src/MatBlazor/Components/MatTable/MatTable.razor +++ b/src/MatBlazor/Components/MatTable/MatTable.razor @@ -42,7 +42,9 @@ @if (@ShowFooter) { - + + @MatTableFooter + } @@ -107,6 +109,12 @@ [Parameter] public RenderFragment MatTableHeader { get; set; } + /// + /// The table footer + /// + [Parameter] + public RenderFragment MatTableFooter { get; set; } + /// /// Allows the header row to be sorted /// From 4d2eae06e856112a4329a4d6d43fa31ba211ec96 Mon Sep 17 00:00:00 2001 From: Shawn Grubbs Date: Sun, 24 Sep 2023 18:55:45 -0500 Subject: [PATCH 2/2] MatBlazor.xml changes --- src/MatBlazor/MatBlazor.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/MatBlazor/MatBlazor.xml b/src/MatBlazor/MatBlazor.xml index 1c05a096..d0ed4374 100644 --- a/src/MatBlazor/MatBlazor.xml +++ b/src/MatBlazor/MatBlazor.xml @@ -806,6 +806,11 @@ Specifies a custom class for the MatTableHeader row + + + Specifies a custom class for the MatTableFooter row + + Specifies a custom class for the MatTableRow @@ -1350,6 +1355,11 @@ The table header + + + The table footer + + Allows the header row to be sorted