HtmlForgeX

API Reference

Class

TablerNavbarNotifications

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Tabler navbar notifications dropdown component for displaying alerts and messages

Inheritance

Constructors

public TablerNavbarNotifications() #

Initializes a new instance of the TablerNavbarNotifications class

Methods

AddNotification 2 overloads
public TablerNavbarNotifications AddNotification(String title, String description = null, String href = "#") #
Returns: TablerNavbarNotifications

Adds a notification item

Parameters

title System.String requiredposition: 0
description System.String = null optionalposition: 1
href System.String = "#" optionalposition: 2
public TablerNavbarNotifications AddNotification(Action<NotificationItem> configure) #
Returns: TablerNavbarNotifications

Adds a notification with configuration

Parameters

configure System.Action{HtmlForgeX.NotificationItem} requiredposition: 0
public TablerNavbarNotifications AutoClose(Boolean autoClose = true) #
Returns: TablerNavbarNotifications

Controls auto-close behavior when clicking outside

Parameters

autoClose System.Boolean = true optionalposition: 0
RegisterLibraries() #

Registers the required libraries for this component

public TablerNavbarNotifications ShowStatusDots(Boolean show = true) #
Returns: TablerNavbarNotifications

Controls whether to show status dots

Parameters

show System.Boolean = true optionalposition: 0
public override String ToString() #
Returns: String

Renders the notifications dropdown to HTML string

public TablerNavbarNotifications WithBadge(Int32 count) #
Returns: TablerNavbarNotifications

Sets the badge count for notifications

Parameters

count System.Int32 requiredposition: 0
public TablerNavbarNotifications WithBadgeColor(TablerColor color) #
Returns: TablerNavbarNotifications

Sets the badge color

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerNavbarNotifications WithTitle(String title) #
Returns: TablerNavbarNotifications

Sets the title for the notifications dropdown

Parameters

title System.String requiredposition: 0