Table of Contents

Class AbstractUnboundEditFormControlBindingModel<TView, TViewModel, TControl>

A class that contains Viewmodel bindings for the EditForm control.

public abstract class AbstractUnboundEditFormControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundComponentBaseControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : EditForm

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundEditFormControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

AbstractUnboundEditFormControlBindingModel(Expression<Func<TView, TControl>>)

protected AbstractUnboundEditFormControlBindingModel(Expression<Func<TView, TControl>> viewExpression)

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

AdditionalAttributes

Gets or sets the binding logic for AdditionalAttributes

public IOneOrTwoWayBind<TViewModel, IReadOnlyDictionary<string, object>>? AdditionalAttributes { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, IReadOnlyDictionary<string, object>>

ChildContent

Gets or sets the binding logic for ChildContent

public IOneOrTwoWayBind<TViewModel, RenderFragment<EditContext>>? ChildContent { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, RenderFragment<EditContext>>

EditContext

Gets or sets the binding logic for EditContext

public IOneOrTwoWayBind<TViewModel, EditContext>? EditContext { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, EditContext>

Enhance

Gets or sets the binding logic for Enhance

public IOneOrTwoWayBind<TViewModel, bool>? Enhance { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, bool>

FormName

Gets or sets the binding logic for FormName

public IOneOrTwoWayBind<TViewModel, string>? FormName { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, string>

Model

Gets or sets the binding logic for Model

public IOneOrTwoWayBind<TViewModel, object>? Model { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, object>

OnInvalidSubmit

Gets or sets the binding logic for OnInvalidSubmit

public IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>? OnInvalidSubmit { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>

OnSubmit

Gets or sets the binding logic for OnSubmit

public IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>? OnSubmit { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>

OnValidSubmit

Gets or sets the binding logic for OnValidSubmit

public IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>? OnValidSubmit { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, EventCallback<EditContext>>

Methods

ApplyBindings(TView, TViewModel, Action<IDisposable>)

Applies the binding between the view and the view model.

public override void ApplyBindings(TView view, TViewModel viewModel, Action<IDisposable> registerForDisposalAction)

Parameters

view TView

The view.

viewModel TViewModel

The viewmodel.

registerForDisposalAction Action<IDisposable>

ApplyBindings(TView, TViewModel, CompositeDisposable)

Applies the binding between the view and the view model.

public override void ApplyBindings(TView view, TViewModel viewModel, CompositeDisposable compositeDisposable)

Parameters

view TView

The view.

viewModel TViewModel

The viewmodel.

compositeDisposable CompositeDisposable

The disposable container to register disposals against.