Class EntityEditViews<T>
Data-entry blocks (multiple tags) for a statically-typed entity. Registers entity commands.
public class EntityEditViews<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender where T : IEntity<T>
Type Parameters
T
- Inheritance
-
EntityEditViews<T>
- Implements
- Inherited Members
Remarks
See DynamicEntityEditViews if you don't have a static type.
Properties
AdminMode
If true, display fields marked as admin only, so long as the current user also has the admin role.
[Parameter]
public bool AdminMode { get; set; }
Property Value
ChildContent
If set, replaces the generated UI entirely. Commands and event handlers are still registered.
[Parameter]
public RenderFragment<T>? ChildContent { get; set; }
Property Value
CommandContext
[CascadingParameter]
public CommandContext? CommandContext { get; set; }
Property Value
Entity
The entity to edit. See IEditSpec to customise the generated fields.
[Parameter]
[EditorRequired]
public T? Entity { get; set; }
Property Value
- T
Exclude
Omit generation of fields from these sections.
[Parameter]
public IReadOnlyList<SectionInfo>? Exclude { get; set; }
Property Value
Include
Generate only fields from these sections.
[Parameter]
public IReadOnlyList<SectionInfo>? Include { get; set; }
Property Value
IsReadOnly
If true, all fields on the page are read-only.
[Parameter]
public bool IsReadOnly { get; set; }
Property Value
OuterContext
[CascadingParameter]
public FieldContext? OuterContext { get; set; }
Property Value
ValidationContext
[CascadingParameter]
public ValidationContext? ValidationContext { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
Dispose()
public void Dispose()
OnParametersSet()
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
protected override void OnParametersSet()