Table of Contents

Class CollectionFieldBase<T>

Namespace
The.Web.Entities.Fields
Assembly
Instagile.Web.Client.dll
public class CollectionFieldBase<T> : PropertyFieldBase<EntityCollectionProperty<T>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IValidatable<EntityCollectionProperty<T>>, IValidatable where T : IEntity<T>

Type Parameters

T
Inheritance
CollectionFieldBase<T>
Implements
Derived
Inherited Members

Properties

HasValue

Indicates whether the validatable field has a value set

public override bool HasValue { get; }

Property Value

bool

Methods

BindingCollectionChanged(object?, EventArgs)

protected virtual void BindingCollectionChanged(object? sender, EventArgs e)

Parameters

sender object
e EventArgs

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

OnAfterRender(bool)

Method invoked after each time the component has rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs.

This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.

protected override void OnAfterRender(bool firstRender)

Parameters

firstRender bool

Set to true if this is the first time OnAfterRender(bool) has been invoked on this component instance; otherwise false.

Remarks

The OnAfterRender(bool) and OnAfterRenderAsync(bool) lifecycle methods are useful for performing interop, or interacting with values received from @ref. Use the firstRender parameter to ensure that initialization work is only performed once.

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

ShouldRender()

Returns a flag to indicate whether the component should render.

protected override bool ShouldRender()

Returns

bool