HtmlForgeX

API Reference

Command

New-HtmlXToast

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerToast

Creates a Tabler toast notification.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Imported script example

New-HtmlXToast -Title "Completed" -Message "Report generated successfully" -Type Success -AutoDismiss 4000
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-HtmlXToast [-Animation <bool>] [-AutoDismiss <int>] [-Autohide <bool>] [-AutoShow <bool>] [-CloseButton <bool>] [-Message <string>] [-Position <TopLeft>] [-Title <string>] [-Type <Default|Success|Warning|Danger|Info>] [<CommonParameters>]
#

Parameters

Animation bool optionalposition: namedpipeline: false
Enables or disables toast animation.
AutoDismiss int optionalposition: namedpipeline: false
Auto-dismiss delay in milliseconds (0 to disable).
Autohide bool optionalposition: namedpipeline: false
Overrides Bootstrap autohide behavior.
AutoShow bool optionalposition: namedpipeline: false
Controls automatic show after load.
CloseButton bool optionalposition: namedpipeline: false
Shows or hides the close button.
Message string optionalposition: namedpipeline: false
Toast message text.
Position TablerToastPosition optionalposition: namedpipeline: falsevalues: 6
Toast container position. Possible values: TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight
Possible values: TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight
Title string optionalposition: namedpipeline: false
Toast title.
Type TablerToastType optionalposition: namedpipeline: falsevalues: 5
Toast type (visual style). Possible values: Default, Success, Warning, Danger, Info
Possible values: Default, Success, Warning, Danger, Info

Outputs

HtmlForgeX.TablerToast