Class ValueFieldBase<T>
public class ValueFieldBase<T> : FieldBase<IValue<T?>, IEntity?>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, ITag
Type Parameters
T
- Inheritance
-
ValueFieldBase<T>
- Implements
- Derived
- Inherited Members
Properties
CanParse
False while the widget holds text that cannot be converted to the bound property's type.
protected bool CanParse { get; }
Property Value
FocusChangedCallback
protected EventCallback<bool> FocusChangedCallback { get; }
Property Value
Model
protected virtual T? Model { get; set; }
Property Value
- T
Parent
public override IEntity? Parent { get; }
Property Value
ParseFailureMessage
The local finding message shown while the widget's text cannot be parsed.
protected virtual string ParseFailureMessage { get; }
Property Value
Methods
BindingValueChanged(object?, EventArgs)
protected virtual void BindingValueChanged(object? sender, EventArgs e)
Parameters
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()
HasChanges()
public override bool HasChanges()
Returns
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
firstRenderboolSet to
trueif this is the first time OnAfterRender(bool) has been invoked on this component instance; otherwisefalse.
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.
OnCanParseChanged(bool)
protected void OnCanParseChanged(bool canParse)
Parameters
canParsebool
OnParametersSetInternal()
Runs when component parameters are set, after the field's own bookkeeping.
protected override void OnParametersSetInternal()
ShouldRender()
Returns a flag to indicate whether the component should render.
protected override bool ShouldRender()