Table of Contents

Class EntityEditViews<T>

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

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

bool

ChildContent

If set, replaces the generated UI entirely. Commands and event handlers are still registered.

[Parameter]
public RenderFragment<T>? ChildContent { get; set; }

Property Value

RenderFragment<T>

CommandContext

[CascadingParameter]
public CommandContext? CommandContext { get; set; }

Property Value

CommandContext

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

IReadOnlyList<SectionInfo>

Include

Generate only fields from these sections.

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

Property Value

IReadOnlyList<SectionInfo>

IsReadOnly

If true, all fields on the page are read-only.

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

Property Value

bool

OuterContext

[CascadingParameter]
public FieldContext? OuterContext { get; set; }

Property Value

FieldContext

ValidationContext

[CascadingParameter]
public ValidationContext? ValidationContext { get; set; }

Property Value

ValidationContext

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

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()