-
Notifications
You must be signed in to change notification settings - Fork 422
[dev-v5] FluentTreeView #3802
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
Merged
Merged
[dev-v5] FluentTreeView #3802
Conversation
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
4 tasks
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 99.5%
|
@PascalVorwerk FYI |
vnbaaij
approved these changes
May 23, 2025
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.
Excellent!
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.
[dev-v5] FluentTreeView
A hierarchical list structure component for displaying data in a collapsible and expandable way.
You can create a Tree manually by nesting
FluentTreeItem
components or by using theItems
property ofFluentTreeView
to dynamically generate a tree from a list of objects.If you use the
Items
property, you can also set theItemTemplate
property to specify how each item should be displayed.With these two ways of creating a tree, using the
Text
parameter will display the text of the element, adding an ellipsis...
if the text is too long.Each element also has the properties
IconStart
,IconEnd
, andIconAside
to display an icon to the left, right, or at the end of the text.Manual TreeView
Items parameter
In this example, we create a tree dynamically by using the
Items
property ofFluentTreeView
.The
Items
parameter is a list of TreeViewItem that represent the items in the tree.When a user selects an item, the
SelectedItem
parameter is updated with theITreeViewItem
of the selected item.Mutliple Selection
The
FluentTreeView
component supports the multiple selection of items using theSelectionMode
parameter.When this parameter is set to
TreeSelectionMode.Multiple
, a checkbox is displayed next to each item.You can customize the visibility of the checkbox using the
MultipleSelectionVisibility
parameter.This function allows you to show, hide (keeping the space) or hide and remove the checkbox, based on each
ITreeViewItem
objects.Live example: https://fluentui-blazor-v5.azurewebsites.net/TreeView
Unit Tests