HtmlForgeX

API Reference

Class

ToastSettings

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Settings sub‑builder for TablerToast.

Inheritance

  • Object
  • ToastSettings

Methods

public ToastSettings Animation(Boolean enable = true) #
Returns: ToastSettings

Enables or disables toast animation.

Parameters

enable System.Boolean = true optionalposition: 0
public ToastSettings AutoDismiss(Int32 milliseconds) #
Returns: ToastSettings

Automatically dismiss the toast after the specified delay.

Parameters

milliseconds System.Int32 requiredposition: 0
public ToastSettings Autohide(Nullable<Boolean> autohide) #
Returns: ToastSettings

Overrides Bootstrap autohide behavior. When null, HtmlForgeX infers it from the configured delay.

Parameters

autohide System.Nullable{System.Boolean} requiredposition: 0
public ToastSettings AutoShow(Boolean show = true) #
Returns: ToastSettings

Controls whether the toast should be shown automatically after load.

Parameters

show System.Boolean = true optionalposition: 0
public ToastSettings CloseButton(Boolean show = true) #
Returns: ToastSettings

Shows or hides the close button.

Parameters

show System.Boolean = true optionalposition: 0
public TablerToast End() #
Returns: TablerToast

Returns control to the root toast builder.

public ToastSettings Message(String message) #
Returns: ToastSettings

Sets the toast message text.

Parameters

message System.String requiredposition: 0
public ToastSettings Position(TablerToastPosition position) #
Returns: ToastSettings

Sets the toast container position.

Parameters

position HtmlForgeX.TablerToastPosition requiredposition: 0
public ToastSettings Title(String title) #
Returns: ToastSettings

Sets the toast title text.

Parameters

title System.String requiredposition: 0
public ToastSettings Type(TablerToastType type) #
Returns: ToastSettings

Sets the toast visual type.

Parameters

type HtmlForgeX.TablerToastType requiredposition: 0