HtmlForgeX

API Reference

Class

TablerAlert

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Component for displaying alert messages in Tabler style.

Inheritance

Constructors

public TablerAlert(String title, String message, TablerColor alertColor = Default, TablerAlertType alertType = Regular) #

Initializes or configures TablerAlert.

Parameters

title System.String requiredposition: 0
message System.String requiredposition: 1
alertColor HtmlForgeX.TablerColor = Default optionalposition: 2
alertType HtmlForgeX.TablerAlertType = Regular optionalposition: 3

Methods

public TablerAlert Action(String href, String text) #
Returns: TablerAlert

Initializes or configures Action.

Parameters

href System.String requiredposition: 0
text System.String requiredposition: 1
public TablerAlert Color(TablerColor color) #
Returns: TablerAlert

Initializes or configures Color.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public TablerAlert Important() #
Returns: TablerAlert

Initializes or configures Important.

public TablerAlert List(params String[] items) #
Returns: TablerAlert

Adds list items to be rendered under the alert.

Parameters

items System.String[] requiredposition: 0
public TablerAlert Minor() #
Returns: TablerAlert

Initializes or configures Minor.

RegisterLibraries() #

Registers required Tabler libraries.

public TablerAlert Stretch() #
Returns: TablerAlert

Makes the alert stretch to fill the height of its parent container. Useful in grid rows where multiple alerts should have equal height.

public override String ToString() #
Returns: String

Initializes or configures ToString.

public TablerAlert WithDescription() #
Returns: TablerAlert

Initializes or configures WithDescription.