Table of Contents

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 ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

Returns

Task

Error(ToastService, string?, string?, bool, bool)

Toast 调用错误快捷方法

public static Task Error(this ToastService service, string? title, string? content, bool autoHide, bool showClose)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

showClose bool

是否显示关闭按钮 默认 true

Returns

Task

Information(ToastService, string?, string?, bool)

Toast 调用提示信息快捷方法

public static Task Information(this ToastService service, string? title = null, string? content = null, bool autoHide = true)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

Returns

Task

Information(ToastService, string?, string?, bool, bool)

Toast 调用提示信息快捷方法

public static Task Information(this ToastService service, string? title, string? content, bool autoHide, bool showClose)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

showClose bool

是否显示关闭按钮 默认 true

Returns

Task

Success(ToastService, string?, string?, bool)

Toast 调用成功快捷方法

public static Task Success(this ToastService service, string? title = null, string? content = null, bool autoHide = true)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

Returns

Task

Success(ToastService, string?, string?, bool, bool)

Toast 调用成功快捷方法

public static Task Success(this ToastService service, string? title, string? content, bool autoHide, bool showClose)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

showClose bool

是否显示关闭按钮 默认 true

Returns

Task

Warning(ToastService, string?, string?, bool)

Toast 调用警告信息快捷方法

public static Task Warning(this ToastService service, string? title = null, string? content = null, bool autoHide = true)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

Returns

Task

Warning(ToastService, string?, string?, bool, bool)

Toast 调用警告信息快捷方法

public static Task Warning(this ToastService service, string? title, string? content, bool autoHide, bool showClose)

Parameters

service ToastService
title string

Title 属性

content string

Content 属性

autoHide bool

自动隐藏属性默认为 true

showClose bool

是否显示关闭按钮 默认 true

Returns

Task