Table of Contents

Class NotificationItem

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

通知信息类

public class NotificationItem
Inheritance
NotificationItem
Inherited Members
Extension Methods

Constructors

NotificationItem()

public NotificationItem()

Properties

Icon

获得/设置 图标

public string? Icon { get; set; }

Property Value

string

Id

获得/设置 消息键值 未赋值时系统自动生成

public string? Id { get; set; }

Property Value

string

Message

获得/设置 信息

public string? Message { get; set; }

Property Value

string

OnClick

获得/设置 通知点击后的回调

[JsonIgnore]
public Func<Task>? OnClick { get; set; }

Property Value

Func<Task>

Remarks

点击通知后自动关闭

Silent

获得/设置 静默

public bool Silent { get; set; }

Property Value

bool

Sound

获得/设置 通知触发时要播放的音频文件的 URL

public string? Sound { get; set; }

Property Value

string

Title

获得/设置 标题

public string? Title { get; set; }

Property Value

string