MudTable requires a FooterContent

See original GitHub issue

Is your feature request related to a problem? Please describe. I need to place a footer row, but the current MudTable control doesn’t allow to do so. I also need to place multiple rows, both on header and footer, so both should allow the user to place the row tag manually inside the fragment.

Describe the solution you’d like Change MudTableBase.HeaderContent to be a new type of MudTableHeader and add a new FooterContent to be of type MudFooterContent that behave similar to MudTr. Both should have an attribute called “SingleRow” defaulted to true (for backward compatibility) that will or won’t automatically create a tr tag, and of course Class and other common attributes like MudTr already does. If the user sets SingleRow="false", should provide his own MudTr or plain HTML code, giving more freedom. The control itself should still render thead and tfoot tags.

Describe alternatives you’ve considered I’ve seen the PR https://github.com/Garderoben/MudBlazor/pull/888 and the discussion about replacing MudTable. I don’t think we should merge/replace them, other then being a compatibility hell (although it’s a young project and it’s something I think MudBlazor can afford). They can follow two different paths and diverge even more, one being simpler and fast while the other being more prone to customization. In the current state, however, MudDataTable still doesn’t allow for multi-row footer/header.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
henoncommented, Apr 24, 2021

Merged Arrow’s PR, so this done.

0reactions
IIARROWScommented, May 20, 2021

@uhfath create a new issue about this, this one has been closed and your problem is not directly tied to it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table
Table with pagination and filtering. The <MudTable> component supports pagination, sorting and filtering of rows, as well as single and multiple row selection....
Read more >
Custom header and footer example doesn't render ...
The 'Header and Footer' example on the MudTable page doesn't render correctly in TryMudBlazor. The example code is here: https://github.com/ ...
Read more >
MudBlazor: How to create a custom table with MudTable ...
I Would like to convert my previous html table below to MudTable. But I can't figure out how to actually do it using...
Read more >
Making Tables With Sticky Header and Footers Got a Bit ...
It wasn't long ago when I looked at sticky headers and footers in HTML s in the blog post A table with both...
Read more >
A Demo On MudBlazor Table Pagination In Blazor ...
In this article, we are going to implement pagination in the Blazor WebAssembly application using the MudBlazor UI table component. Pagination ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found