ProModalService

BitProModalService is a service to globally handle BitProModals with any content.

Notes

To use this component, you need to install the
Bit.BlazorUI.Extras
nuget package, as described in the Optional steps of the Getting started page.

Usage

Basic
Show a BitProModal with a header and close button using the BitProModalService:

API

BitProModalService parameters
Name
Type
Default value
Description
OnAddModal event Func<BitProModalReference, Task>? The event for when a new modal gets added through calling the Show method.
OnCloseModal event Func<BitProModalReference, Task>? The event for when a modal gets removed through calling the Close method.
Close Task (BitProModalReference modal) Closes an already opened modal using its reference.
Show Task<BitProModalReference> (Dictionary<string, object>? parameters) Shows a new BitProModal with a custom component with parameters as its content.
Show Task<BitProModalReference> (BitProModalParameters? modalParameters) Shows a new BitProModal with a custom component as its content with custom parameters for the modal.
Show Task<BitProModalReference> (Dictionary<string, object>? parameters, BitProModalParameters? modalParameters) Shows a new BitProModal with a custom component as its content with custom parameters for the custom component and the modal.

Feedback

You can give us your feedback through our GitHub repo by filing a new Issue or starting a new Discussion.

Or you can review / edit this page on GitHub.

Or you can review / edit this component on GitHub.
  • On this page