Repository navigation
[Menu] Add a FluentMenuProvider - #2510
Merged
Merged
Conversation
Denis Voituron (dvoituron)
requested a review
from Vincent Baaij (vnbaaij)
as a code owner
August 10, 2024 16:31
Denis Voituron (dvoituron)
removed the request for review
from Vincent Baaij (vnbaaij)
August 10, 2024 16:32
Denis Voituron (dvoituron)
enabled auto-merge (squash)
August 10, 2024 16:32
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 61.2%
|
Vincent Baaij (vnbaaij)
self-requested a review
August 11, 2024 17:02
Vincent Baaij (vnbaaij)
previously approved these changes
Aug 11, 2024
Vincent Baaij (vnbaaij)
self-requested a review
August 11, 2024 17:03
Vincent Baaij (vnbaaij)
requested changes
Aug 11, 2024
Vincent Baaij (vnbaaij)
left a comment
Collaborator
There was a problem hiding this comment.
See comments
…crosoft/fluentui-blazor into users/dvoituron/menu-provider
Vincent Baaij (vnbaaij)
approved these changes
Aug 20, 2024
Deny_WPF (dannyldj)
pushed a commit
to dannyldj/fluentui-blazor
that referenced
this pull request
Sep 26, 2024
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.
[FluentMenu] Add a FluentMenuProvider
With this PR, the
FluentMenucomponent has been updated to use theFluentMenuProvider.The
<FluentMenuProvider />is a new component to be placed at the bottom of your HTML page (like the other Providers), which draws all menus to this location. This allows menus to be drawn on top of other components.You can disable this feature by adding the
UseMenuService="false"attribute. In this case, the menu is drawn at the location of your HTML code.Example
The first example contains the
UseMenuService="false"attribute. The menu is created where it is declared, which can pose encapsulation problems, depending on the container used (in this case, aFluentCard).The second example uses the
FluentMenuProviderto display the menu. In this case, the menu is generated at the end of the HTML page and attached to the button using theAnchortag. It's mandatory to use aIdidentifier on the clickable element and an identicalAnchorvalue on the menu, to link the two elements.Unit Tests
No change