Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/MatBlazor/Components/MatTable/BaseMatTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public class BaseMatTable : BaseMatDomComponent
[Parameter]
public string HeaderRowClass { get; set; }

/// <summary>
/// Specifies a custom class for the MatTableFooter row
/// </summary>
[Parameter]
public string FooterRowClass { get; set; }

/// <summary>
/// Specifies a custom class for the MatTableRow
/// </summary>
Expand Down
10 changes: 9 additions & 1 deletion src/MatBlazor/Components/MatTable/MatTable.razor
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
</tbody>
@if (@ShowFooter)
{
<tfoot class="mdc-table-footer-row"></tfoot>
<tfoot>
<tr class="mdc-table-footer-row @(FooterRowClass)">@MatTableFooter</tr>
</tfoot>
}
</table>
</CascadingValue>
Expand Down Expand Up @@ -107,6 +109,12 @@
[Parameter]
public RenderFragment MatTableHeader { get; set; }

/// <summary>
/// The table footer
/// </summary>
[Parameter]
public RenderFragment MatTableFooter { get; set; }

/// <summary>
/// Allows the header row to be sorted
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions src/MatBlazor/MatBlazor.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.