Extras
ProModalService
Bit.BlazorUI.Extras
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
Every example is live. Open its code to see exactly what produced the component running underneath.
Basic
Show a BitProModal with a header and close button using the BitProModalService:
API
Every parameter, public member, sub-class and enum this component exposes.
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
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.