Guidelines for fluent configuration and naming conventions in Umbraco UI Builder.
Umbraco UI Builder follows a fluent configuration style, allowing method chaining for concise and readable code. Alternatively, a lambda expression can be used for a more structured approach.
config.AddSection("Repositories")
.Tree()
.AddCollection<People>(p => p.Id, "Person", "People");
Lambda Expression Example Example
config.AddSection("Repositories", sectionConfig => {
sectionConfig.Tree(treeConfig => {
treeConfig.AddCollection<People>(p => p.Id, "Person", "People");
});
});
Methods prefixed with Add allow multiple configurations.
Methods prefixed with Set permit only one instance within the current configuration context.
Last updated 4 months ago
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4