Table of Contents

Interface IVmDialogController

Namespace
Dmnk.Blazor.Dialogs.Api
Assembly
Dmnk.Blazor.Dialogs.dll

The entry point for application code to show dialogs.

public interface IVmDialogController
Extension Methods

Methods

DefaultIconForIntent(MessageBoxType)

Return the default icon for a given message box type. This can be used by the MessageBoxViewModel and other similar dialogs to get the appropriate icon for the type of message box they are showing.

Icon DefaultIconForIntent(MessageBoxType type)

Parameters

type MessageBoxType

Returns

Icon

Show<T>(VmDialogParameters, T)

Show the dialog for a given viewmodel.

Before calling this, the component should be registered with its corresponding viewmodel using e.g. Register<TComponent, TViewModel>().

Task<VmDialogReference> Show<T>(VmDialogParameters parameters, T viewModel) where T : IVmDialogViewModel

Parameters

parameters VmDialogParameters
viewModel T

Returns

Task<VmDialogReference>

Type Parameters

T