Table of Contents

Class MessageOption

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

Message 组件配置类

public class MessageOption : PopupOptionBase
Inheritance
MessageOption
Inherited Members
Extension Methods

Constructors

MessageOption()

public MessageOption()

Properties

ChildContent

获得/设置 内容模板 默认 null 设置此参数后 Content 将失效

public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Color

获得/设置 颜色 默认 Primary

public Color Color { get; set; }

Property Value

Color

Icon

获得/设置 显示图标 默认 null

public string? Icon { get; set; }

Property Value

string

OnDismiss

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

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

Property Value

Func<Task>

ShowBar

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

public bool ShowBar { get; set; }

Property Value

bool

ShowBorder

获得/设置 是否显示边框 默认 false 不显示

public bool ShowBorder { get; set; }

Property Value

bool

ShowDismiss

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

public bool ShowDismiss { get; set; }

Property Value

bool

ShowMode

获得/设置 消息显示模式,默认为 Multiple

public MessageShowMode ShowMode { get; set; }

Property Value

MessageShowMode

ShowShadow

获得/设置 是否显示阴影 默认 false 不显示

public bool ShowShadow { get; set; }

Property Value

bool