MudBlazor

Community Support

Discord

GitHub Discussions

Tools and resources

TryMudBlazor

Templates

Sponsor

Open Collective


Switch to Blazor wasm
Toggle light/dark theme
GitHub repository
Toggle right-to-left/left-to-right

Community Support

Discord

GitHub Discussions

Tools and resources

TryMudBlazor

Templates

Sponsor

Open Collective

MudTreeView<T>

API documentation.

Check out the Examples for this component.

Properties

Name Type Default Description
CanSelect Boolean False
CanActivate Boolean False
ExpandOnClick Boolean False
CanHover Boolean False
Dense Boolean False
Height String null Setting a height will allow to scroll the treeview. If not set, it will try to grow in height. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
MaxHeight String null Setting a maximum height will allow to scroll the treeview. If not set, it will try to grow in height. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
Width String null Setting a width the treeview. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
Items HashSet<T> null
ActivatedValueChanged EventCallback<T>
SelectedValuesChanged EventCallback<HashSet<T>>
ChildContent RenderFragment null Child content of component.
ItemTemplate RenderFragment<T> null ItemTemplate for rendering childre.
ServerData Func<T, Task<HashSet<T>>> null
Class String null User class names, separated by space
Style String null User styles, applied on top of the component's own classes and styles
Tag Object null Use Tag to attach any user data object to the component for your convenience.
UserAttributes Dictionary<String, Object> UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
    An error has occurred. This application may no longer respond until reloaded. Reload 🗙