Class SwalService
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
SweetAlert 弹窗服务
public class SwalService : BootstrapServiceBase<SwalOption>
- Inheritance
-
SwalService
- Inherited Members
- Extension Methods
Constructors
SwalService(IOptionsMonitor<BootstrapBlazorOptions>)
SweetAlert 弹窗服务
public SwalService(IOptionsMonitor<BootstrapBlazorOptions> options)
Parameters
options
IOptionsMonitor<BootstrapBlazorOptions>
Methods
Show(SwalOption, SweetAlert?)
Show 方法
public Task Show(SwalOption option, SweetAlert? swal = null)
Parameters
option
SwalOptionSwalOption 实例
swal
SweetAlert指定弹窗组件 默认为 null 使用 BootstrapBlazorRoot 组件内置弹窗组件