Skip to content

Commit 2f34eb2

Browse files
authored
Merge pull request #6705 from syncfusion-content/ES-983512-UG2
Revamping the Ug
2 parents 56b9a3c + f6a847b commit 2f34eb2

File tree

15 files changed

+528
-371
lines changed

15 files changed

+528
-371
lines changed

blazor/diagram/layout/mind-map.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ documentation: ug
99

1010
# Mind Map Layout in Blazor Diagram Component
1111

12-
A mind map is a diagram that displays the nodes as a spider diagram organizes information around a central concept. To create a mind map, the [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_Type) of layout should be set as [MindMap](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.LayoutType.html#Syncfusion_Blazor_Diagram_LayoutType_MindMap).
12+
A mind map is a diagram that displays the nodes as a spider diagram organizes information around a central concept. To create a [MindMap](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.LayoutType.html#Syncfusion_Blazor_Diagram_LayoutType_MindMap), set the layout [Type](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_Type) to **MindMap**.
1313

14-
To create a mind map layout using the Blazor Diagram, refer to the below video link,
14+
To see a quick walkthrough of creating a mind map layout, watch the following video:
1515

1616
{% youtube "youtube:https://www.youtube.com/watch?v=_EHmKNok4GQ" %}
1717

18-
The following code example illustrates how to create a mind map layout.
18+
The following code example illustrates how to create a mind map layout using a data source.
1919

2020
```csharp
2121
@using Syncfusion.Blazor.Diagram
@@ -77,11 +77,13 @@ To create a mind map layout using the Blazor Diagram, refer to the below video l
7777
};
7878
}
7979
```
80-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapSample1)
80+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rtVSiDNxJQsQKecM?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
81+
82+
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapSample1)
8183
8284
![Blazor Mind Map Diagram](../images/blazor-mind-map-diagram.png)
8385

84-
You can also decide the branch for a mind map using the [GetBranch](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_GetBranch) method. The following code demonstrates how to set all branches on the right side for a mind map layout using the GetBranch method.
86+
You can also control the branch for a mind map using the [GetBranch](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_GetBranch) method. The following example demonstrates how to configure all branches to appear on the right side using this method.
8587
8688
```csharp
8789
@using Syncfusion.Blazor.Diagram
@@ -160,11 +162,13 @@ You can also decide the branch for a mind map using the [GetBranch](https://help
160162
};
161163
}
162164
```
163-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapSample2)
165+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LZrIiDXHJGLCZNgi?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
166+
167+
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapSample2)
164168
165169
![Blazor Mind Map Diagram with Branches](../images/blazor-mind-map-diagram-with-branches.png)
166170

167-
>**Note:** In the DataSourceSettings, the type of the ID and ParentID properties is string. The provided DataSource should have a parent-child relationship. It is necessary for at least one node to have an empty ParentID.
171+
>**Note:** In `DataSourceSettings`, the `ID` and `ParentID` properties are string, and the provided `DataSource` should have a parent-child relationship. At least one node must have an empty `ParentID` to act as the root.
168172

169173
Also, you can render a mind map layout without using a Datasource. The following code demonstrates how to render a mind map layout without using DataSource.
170174

@@ -402,14 +406,15 @@ Also, you can render a mind map layout without using a Datasource. The following
402406
}
403407
}
404408
```
409+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rDVIMtZRfwVSIPqf?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
405410

406-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindMapWithoutDataSource)
411+
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindMapWithoutDataSource)
407412
408413
## How to Change the Mind Map Orientation
409414

410-
The [`Orientation`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_Orientation) property of the mind map layout specifies the direction in which nodes are arranged. By default, the layout is set to **Horizontal**, which means nodes are arranged from left to right. To change the layout to vertical, set the `Orientation` property to **Vertical**.
415+
The [Orientation](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Layout.html#Syncfusion_Blazor_Diagram_Layout_Orientation) property controls the direction in which the mind map expands. By default, the layout is set to **Horizontal**, which means nodes are arranged from left to right. To change the layout to vertical, set the `Orientation` property to **Vertical**.
411416
412-
The following example demonstrates how to configure the mind map layout with vertical orientation during component initialization.
417+
The following example demonstrates configuring the mind map layout with a vertical orientation during component initialization.
413418

414419
```cshtml
415420
@using Syncfusion.Blazor.Diagram
@@ -522,12 +527,13 @@ The following example demonstrates how to configure the mind map layout with ver
522527
}
523528
}
524529
```
530+
{% previewsample "https://blazorplayground.syncfusion.com/embed/htBeWNXxpmANjEaW?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
525531

526-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapOrientation).
532+
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapOrientation).
527533
528-
![MindMapDiagram](../images/blazor-mind-map-diagram-with-orientation.png)
534+
![Blazor mind map with vertical orientation](../images/blazor-mind-map-diagram-with-orientation.png)
529535

530-
The following code demonstrates how to update the layout's orientation dynamically at runtime using data binding and directly using methods.
536+
The following example demonstrates how to update the layout orientation dynamically at runtime using both data binding and direct method calls.
531537

532538
```cshtml
533539
@using Syncfusion.Blazor.Diagram
@@ -655,7 +661,9 @@ The following code demonstrates how to update the layout's orientation dynamical
655661
}
656662
}
657663
```
658-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapOrientationRuntime).
664+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rNhIWZXnfGJpthaI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
665+
666+
A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Layout/MindmapOrientationRuntime).
659667
660668
The following table outlines the various orientation types available:
661669

0 commit comments

Comments
 (0)