-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ExpansionPanels: Added ExpandAll and CollapseAll methods #3699
ExpansionPanels: Added ExpandAll and CollapseAll methods #3699
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #3699 +/- ##
==========================================
+ Coverage 90.49% 90.55% +0.05%
==========================================
Files 332 332
Lines 10494 10499 +5
==========================================
+ Hits 9497 9507 +10
+ Misses 997 992 -5
Continue to review full report at Codecov.
|
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.
Thanks for the PR!
No, final decision yet if we want to merge it. But nothing speaks against it imo.
src/MudBlazor/Components/ExpansionPanel/MudExpansionPanels.razor.cs
Outdated
Show resolved
Hide resolved
I made this change because I need the functionality for a website. I've hacked it for now with reflection, but would rather have a proper way to do this. I also think this is normal and often seen functionality for this kind of control. |
If we go ahead with this I vote to fix the naming now before following old misnomers. Forward and obsolete the old CloseAllExcept to CollapseAllExcept and name the new Collapse.... |
Fixed test for CollapseAll. Added CollapseAllExcept and call it from CloseAllExcept, which is now obsolete. Added test for CollapseAllExcept. Added InvokeAsync for UpdateAll call in CollapseAllExcept.
@Garderoben @henon For me I can see scenarios where this new API makes sense. |
Yes, I support it. It is useful, no question about it. |
I spoke to @Garderoben We will merge this very soon. |
Description
Added these methods to better control the panel.
How Has This Been Tested?
Added two unit tests.
Types of changes
Checklist:
dev
).