Table of Contents

Class ConfirmationDialogView

Namespace
Dmnk.Blazor.Dialogs.Fluent.DefaultDialogs
Assembly
Dmnk.Blazor.Dialogs.Fluent.dll
public class ConfirmationDialogView : BlazorVmDialogViewFor<ConfirmationDialogViewModel>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable, IVmDialogViewFor<ConfirmationDialogViewModel>, IVmDialogView
Inheritance
ConfirmationDialogView
Implements
Inherited Members

Constructors

ConfirmationDialogView()

public ConfirmationDialogView()

Properties

Dialog

A reference to the dialog, which can be used to close or dismiss it.

[Parameter]
public override required VmDialogReference Dialog { get; set; }

Property Value

VmDialogReference

Params

Core parameters that apply to all dialogs.

[Parameter]
public override required VmDialogParameters Params { get; set; }

Property Value

VmDialogParameters

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnAfterRenderAsync(bool)

Method invoked after each time the component has been 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.

Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.

protected override Task OnAfterRenderAsync(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.

Returns

Task

A Task representing any asynchronous operation.

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.