MudNavGroup: Add TitleContent parameter#10160
Merged
henon merged 1 commit intoMudBlazor:devfrom Nov 2, 2024
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #10160 +/- ##
=======================================
Coverage 91.22% 91.22%
=======================================
Files 411 411
Lines 12484 12485 +1
Branches 2434 2435 +1
=======================================
+ Hits 11389 11390 +1
Misses 552 552
Partials 543 543 ☔ View full report in Codecov by Sentry. |
danielchalmers
approved these changes
Nov 2, 2024
Comment on lines
22
to
31
| <div Class="mud-nav-link-text"> | ||
| @Title | ||
| @if (TitleContent is not null) | ||
| { | ||
| @TitleContent | ||
| } | ||
| else | ||
| { | ||
| @Title | ||
| } | ||
| </div> |
Member
There was a problem hiding this comment.
You could make the argument it should have a different class but I think it's fine
Contributor
|
Thanks @Ben0421 |
LLauter
pushed a commit
to cannellamedia/MudBlazor
that referenced
this pull request
Dec 16, 2024
Co-authored-by: Benoit G. <bgagnon@renardsolutions.ca>
This was referenced Aug 18, 2025
This was referenced Oct 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A TitleContent render fragment was added in the component MudNavGroup. There was a way to add custom content to all the other Nav Menu's components except this one. The implementation is very similar to MudExpansionPanel's TitleContent where TitleContent takes precedence over Title.
How Has This Been Tested?
No test were added. An example has been added in the docs. It has only been tested visually since the change doesn't include any logic.
Type of Changes
Here the example added in the docs for this new feature:
LTR
RTL:
Checklist
dev).