Skip to content

Commit 0cb546d

Browse files
committed
Rearranged the method syntax and example
1 parent 93b7fdc commit 0cb546d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

15/umbraco-ui-builder/areas/sections.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ Sections are defined using the `AddSection` method on the root-level `UIBuilderC
1616

1717
This method adds a new section to the Umbraco menu with the specified name, allowing custom areas for organizing content in the backoffice.
1818

19+
#### Method Syntax
20+
21+
```cs
22+
AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder
23+
```
24+
25+
#### Example
26+
1927
```csharp
2028
config.AddSection("Repositories", sectionConfig => {
2129
...
2230
});
2331
```
2432

25-
**Code Reference:**
26-
27-
```cs
28-
AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder
29-
```
30-
3133
### Using the `AddSectionBefore()` Method
3234

3335
This method adds a section before another section with the specified alias, allowing for customized ordering of sections in the backoffice.

0 commit comments

Comments
 (0)