Showcase

MindMap

This documentation provides a comprehensive reference for the MindMap component, guiding you through its configuration options.
Demos

Screenshot #

Blazor MindMap Component

Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 1.0.0
AllowPan bool True Gets or sets whether the map's background can be dragged with a mouse or pen to scroll the map. 4.1.0
AllowSearch bool True Gets or sets whether the built-in find box is shown. 4.1.0
AllowZoom bool True Gets or sets whether the zoom controls are shown. 4.1.0
AutoBranchColors bool True Gets or sets whether each first-level branch takes the next Bootstrap palette color automatically. 4.1.0
BranchColor Func<TItem, MindMapColor?>? null Gets or sets a selector that pins a branch color for a node and its descendants. Return null to keep the inherited or automatic color. 4.1.0
Children Func<TItem, IEnumerable<TItem>?>? null Gets or sets the selector that returns a node's children. A null or empty result makes the node a leaf. 4.1.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 1.0.0
Direction MindMapDirection Right Gets or sets the direction in which branches grow from the root. 4.1.0
ExpandedItems IReadOnlyCollection<TItem>? null Gets or sets the open nodes. Use with @bind-ExpandedItems to read, set, or restore them. When null, InitialExpandDepth decides which nodes start open. 4.1.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 1.0.0
InitialExpandDepth int 1 Gets or sets how deep nodes start open when ExpandedItems is not set. The root is depth 0, so 1 opens only the root. 4.1.0
Label Func<TItem, string>? null Gets or sets the selector that returns a node's label. When null, ToString() is used. Search matches this text. 4.1.0
NodeTemplate RenderFragment<MindMapNodeContext<TItem>>? null Gets or sets the template that fills each node card. Without it, the card shows the label. 4.1.0
PathLabel string Selected node path Gets or sets the accessible label of the path bar. 4.1.0
Root TItem? null Gets or sets the root item of the map. 4.1.0
SearchLabel string Find a node Gets or sets the accessible label of the find box. 4.1.0
SearchMatchesTextFormat string {0} matches Gets or sets the match count text format. {0} is replaced by the number of matches. 4.1.0
SearchNoMatchesText string No matches Gets or sets the text shown when a search has no matches. 4.1.0
SearchOneMatchText string 1 match Gets or sets the text shown when a search has exactly one match. 4.1.0
SearchPlaceholder string Find a node… Gets or sets the placeholder of the find box. 4.1.0
SelectedItem TItem? null Gets or sets the selected node's item. Use with @bind-SelectedItem. 4.1.0
ShowPath bool True Gets or sets whether the path bar shows the labels from the root to the selected node. 4.1.0
StackLeaves bool False Gets or sets whether, in the Down and Up directions, a node whose two or more children are all leaves lists them in a column instead of side by side. 4.1.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 1.0.0
ZoomInText string Zoom in Gets or sets the accessible label of the zoom-in button. 4.1.0
ZoomOutText string Zoom out Gets or sets the accessible label of the zoom-out button. 4.1.0
ZoomResetText string Reset zoom Gets or sets the text of the reset-zoom button. 4.1.0

Methods #

Name Return type Description Added Version
CollapseAllAsync() Task Closes every node except the root. 4.1.0
ExpandAllAsync() Task Opens every node that has children. 4.1.0

Events #

Name Return Type Description Added Version
ExpandedItemsChanged EventCallback<IReadOnlyCollection<TItem>> This event fires when the set of open nodes changes. 4.1.0
OnExpandedChanged EventCallback<MindMapExpandedChangedEventArgs<TItem>> This event fires when nodes open or close, listing every node that opened and closed in the change. 4.1.0
SelectedItemChanged EventCallback<TItem?> This event fires when the selected node changes. 4.1.0

MindMapNodeContext Properties #

Name Type Default Required Description Added Version
IsMatch bool False Gets whether the node's label matches the current search text. 4.1.0
Item TItem? null Gets the item the node represents. 4.1.0
SearchText string? null Gets the current search text, or null when nothing is searched. 4.1.0

MindMapExpandedChangedEventArgs Properties #

Name Type Default Required Description Added Version
Closed IReadOnlyList<TItem?> null Gets the items whose nodes closed. 4.1.0
Opened IReadOnlyList<TItem?> null Gets the items whose nodes opened. 4.1.0

MindMapDirection Enum #

Name Value Description Added Version
Right 0 The root sits at the left and branches grow to the right. 4.1.0
Left 1 The root sits at the right and branches grow to the left. 4.1.0
BothSides 2 The root sits in the centre and its branches are split between the right and left sides. 4.1.0
Down 3 The root sits at the top and branches grow down. 4.1.0
Up 4 The root sits at the bottom and branches grow up. 4.1.0

MindMapColor Enum #

Name Value Description Added Version
None 0 Neutral lines and card borders, with no palette color. 4.1.0
Blue 1 Bootstrap blue. 4.1.0
Indigo 2 Bootstrap indigo. 4.1.0
Purple 3 Bootstrap purple. 4.1.0
Pink 4 Bootstrap pink. 4.1.0
Red 5 Bootstrap red. 4.1.0
Orange 6 Bootstrap orange. 4.1.0
Yellow 7 Bootstrap yellow. 4.1.0
Green 8 Bootstrap green. 4.1.0
Teal 9 Bootstrap teal. 4.1.0
Cyan 10 Bootstrap cyan. 4.1.0

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.