New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MudDataGrid: Apply Footer/Header Style Funcs #8853
Conversation
…sFunc, HeaderStyleFunc and HeaderClassFunc (MudBlazor#8852)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8853 +/- ##
==========================================
+ Coverage 89.82% 90.43% +0.60%
==========================================
Files 412 419 +7
Lines 11878 12201 +323
Branches 2364 2381 +17
==========================================
+ Hits 10670 11034 +364
+ Misses 681 630 -51
- Partials 527 537 +10 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It surpsises me that the original [Header/Footer][Class/Style]Funcs were never hooked up. I don't know if that was missed, or if it was overwritten by some other PR. This looks good and thanks for catching it, @kev-andrews!
@kev-andrews, I just saw that you did not write any tests. It is required to unit test changes like this. Can you add a quick set of tests that just check that the classes/styles which are supposed to be applied by the given funcs are, in fact, applied? |
Hi |
I will write some tests over the weekend, thanks |
Any update on this? I'd like to merge it for the preview.3 |
Thanks! |
Add implementations to apply FooterStyleFunc, FooterClassFunc, HeaderStyleFunc and HeaderClassFunc
Description
Added code that actually applies the functions to the Css/Stylebuilders.
Changed func signature to accept IEnumerable as Func<T, string> makes no sense as the Header/Footer cant be styled based on just one cell as the CellStyleFuncs allow.
fixes #8852
How Has This Been Tested?
none - sorry :(
I can add them if required
Type of Changes
Checklist
dev
).