Table of Contents

Class DynamicEntityEditViews

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll

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

bool

Entity

The entity to edit. See IEditSpec to customise the generated fields.

[Parameter]
[EditorRequired]
public IEntity? Entity { get; set; }

Property Value

IEntity

Exclude

Omit generation of fields from these sections.

[Parameter]
public IReadOnlyList<SectionInfo>? Exclude { get; set; }

Property Value

IReadOnlyList<SectionInfo>

Include

Generate only fields from these sections.

[Parameter]
public IReadOnlyList<SectionInfo>? Include { get; set; }

Property Value

IReadOnlyList<SectionInfo>

IsReadOnly

[Parameter]
public bool IsReadOnly { get; set; }

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

builder RenderTreeBuilder

A RenderTreeBuilder that will receive the render output.