Field Views
Configuring Field Views in Umbraco UI Builder.
Defining a Field View
Basic View File for the Built-In FieldView View Component
FieldView View Component@model Umbraco.UIBuilder.Web.Models.FieldViewContext
<!-- Insert your markup here -->Custom View Component
// Example
public class MyComplexFieldViewViewComponent : ViewComponent
{
public async Task<IViewComponentResult> InvokeAsync(FieldViewContext context)
{
// Do your custom logic here
return View("Default", model);
}
}The Field View Context
Setting the Field View of a List View Field
Last updated
Was this helpful?