Class ToastServiceExtensions
- Namespace
- BootstrapBlazor.Components
- Assembly
- BootstrapBlazor.dll
ToastService 扩展方法
public static class ToastServiceExtensions
- Inheritance
-
ToastServiceExtensions
- Inherited Members
Methods
Error(ToastService, string?, string?, bool)
Toast 调用错误快捷方法
public static Task Error(this ToastService service, string? title = null, string? content = null, bool autoHide = true)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
Returns
Error(ToastService, string?, string?, bool, bool)
Toast 调用错误快捷方法
public static Task Error(this ToastService service, string? title, string? content, bool autoHide, bool showClose)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
showClose
bool是否显示关闭按钮 默认 true
Returns
Information(ToastService, string?, string?, bool)
Toast 调用提示信息快捷方法
public static Task Information(this ToastService service, string? title = null, string? content = null, bool autoHide = true)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
Returns
Information(ToastService, string?, string?, bool, bool)
Toast 调用提示信息快捷方法
public static Task Information(this ToastService service, string? title, string? content, bool autoHide, bool showClose)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
showClose
bool是否显示关闭按钮 默认 true
Returns
Success(ToastService, string?, string?, bool)
Toast 调用成功快捷方法
public static Task Success(this ToastService service, string? title = null, string? content = null, bool autoHide = true)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
Returns
Success(ToastService, string?, string?, bool, bool)
Toast 调用成功快捷方法
public static Task Success(this ToastService service, string? title, string? content, bool autoHide, bool showClose)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
showClose
bool是否显示关闭按钮 默认 true
Returns
Warning(ToastService, string?, string?, bool)
Toast 调用警告信息快捷方法
public static Task Warning(this ToastService service, string? title = null, string? content = null, bool autoHide = true)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
Returns
Warning(ToastService, string?, string?, bool, bool)
Toast 调用警告信息快捷方法
public static Task Warning(this ToastService service, string? title, string? content, bool autoHide, bool showClose)
Parameters
service
ToastServicetitle
stringTitle 属性
content
stringContent 属性
autoHide
bool自动隐藏属性默认为 true
showClose
bool是否显示关闭按钮 默认 true