Table of Contents

Class ToastOption

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

Toast 弹出窗参数配置类

public class ToastOption : PopupOptionBase
Inheritance
ToastOption
Inherited Members
Extension Methods

Constructors

ToastOption()

public ToastOption()

Properties

Animation

获得/设置 是否开启动画 默认 true

public bool Animation { get; set; }

Property Value

bool

Category

获得/设置 弹出框类型

public ToastCategory Category { get; set; }

Property Value

ToastCategory

ChildContent

获得/设置 子组件

public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

ErrorIcon

获得/设置 错误图标

public string? ErrorIcon { get; set; }

Property Value

string

HeaderTemplate

获得/设置 Header 模板 默认为 null

public RenderFragment? HeaderTemplate { get; set; }

Property Value

RenderFragment

InformationIcon

获得/设置 提示图标

public string? InformationIcon { get; set; }

Property Value

string

OnCloseAsync

获得/设置 关闭当前 Toast 回调委托 默认 null

public Func<Task>? OnCloseAsync { get; set; }

Property Value

Func<Task>

PreventDuplicates

获得/设置 是否阻止重复消息 默认 false

public bool PreventDuplicates { get; set; }

Property Value

bool

ShowClose

获得/设置 是否显示关闭按钮 默认 true

public bool ShowClose { get; set; }

Property Value

bool

ShowHeader

获得/设置 是否显示 Header 默认 true

public bool ShowHeader { get; set; }

Property Value

bool

SuccessIcon

获得/设置 成功图标

public string? SuccessIcon { get; set; }

Property Value

string

Title

获得/设置 显示标题

public string? Title { get; set; }

Property Value

string

WarningIcon

获得/设置 警告图标

public string? WarningIcon { get; set; }

Property Value

string

Methods

Close()

关闭当前弹窗方法

public Task Close()

Returns

Task