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
Color
获得/设置 颜色
[Parameter]
public Color Color { get; set; }
Property Value
Icon
获得/设置 显示图标
[Parameter]
public string? Icon { get; set; }
Property Value
IconString
获得 图标样式字符串
protected string? IconString { get; }
Property Value
OnDismiss
关闭警告框回调方法
[Parameter]
public Func<Task>? OnDismiss { get; set; }
Property Value
ShowBar
获得/设置 是否显示左侧 Bar
[Parameter]
public bool ShowBar { get; set; }
Property Value
ShowDismiss
获得/设置 是否显示关闭按钮
[Parameter]
public bool ShowDismiss { get; set; }