Class DynamicEntityEditViews
Data-entry blocks (multiple tags) for a dynamically-typed entity. Registers entity commands.
public class DynamicEntityEditViews : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IVisitor<Action<RenderTreeBuilder>>
- Inheritance
-
DynamicEntityEditViews
- Implements
- Inherited Members
Remarks
See EntityEditViews<T> if you 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
Entity
The entity to edit. See IEditSpec to customise the generated fields.
[Parameter]
[EditorRequired]
public IEntity? Entity { get; set; }
Property Value
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
[Parameter]
public bool IsReadOnly { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
builderRenderTreeBuilderA RenderTreeBuilder that will receive the render output.