Table of Contents

Class AlertBase

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

Alert 警告框组件

public abstract class AlertBase : BootstrapComponentBase, IComponent, IHandleAfterRender, IHandleEvent
Inheritance
AlertBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

AlertBase()

protected AlertBase()

Properties

ChildContent

子组件

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Color

获得/设置 颜色

[Parameter]
public Color Color { get; set; }

Property Value

Color

Icon

获得/设置 显示图标

[Parameter]
public string? Icon { get; set; }

Property Value

string

IconString

获得 图标样式字符串

protected string? IconString { get; }

Property Value

string

OnDismiss

关闭警告框回调方法

[Parameter]
public Func<Task>? OnDismiss { get; set; }

Property Value

Func<Task>

ShowBar

获得/设置 是否显示左侧 Bar

[Parameter]
public bool ShowBar { get; set; }

Property Value

bool

ShowDismiss

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

[Parameter]
public bool ShowDismiss { get; set; }

Property Value

bool