HtmlForgeX

API Reference

Class

NotificationItem

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents a notification item

Inheritance

  • Object
  • NotificationItem

Constructors

Methods

public NotificationItem WithAction(Nullable<TablerIconType> icon = null) #
Returns: NotificationItem

Add action button

Parameters

icon System.Nullable{HtmlForgeX.TablerIconType} = null optionalposition: 0
public NotificationItem WithIcon(TablerIconType icon, Nullable<TablerColor> color = null) #
Returns: NotificationItem

Fluent configuration

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
color System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
public NotificationItem WithStatus(TablerColor color, Boolean animated = false) #
Returns: NotificationItem

Configure status dot

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
animated System.Boolean = false optionalposition: 1

Properties

public String Title { get; set; } #

Title of the notification

public String Description { get; set; } #

Description or subtitle

public String Href { get; set; } #

Link URL

public Nullable<TablerIconType> Icon { get; set; } #

Optional icon

public Nullable<TablerColor> IconColor { get; set; } #

Icon color

public Boolean ShowStatusDot { get; set; } #

Show status dot

public TablerColor StatusColor { get; set; } #

Status dot color

public Boolean IsAnimated { get; set; } #

Animated status dot

public Boolean ShowAction { get; set; } #

Show action button (star, etc.)

public Nullable<TablerIconType> ActionIcon { get; set; } #

Action button icon

IsViewAll #

Internal flag for "View All" link