Accent color
# ProModalService
## Description
BitProModalService is a service to globally handle BitProModals with any content.
## 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. |
## Examples
\n**Basic**:
```razor
Show
```
```csharp
[AutoInject] private BitProModalService proModalService = default!;
private async Task ShowModal()
{
await proModalService.Show(new BitProModalParameters()
{
HeaderText = "BitProModalService",
ShowCloseButton = true
});
}
```