API Reference
Command
New-HtmlXToast
Creates a Tabler toast notification.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
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
- Enables or disables toast animation.
- AutoDismiss int
- Auto-dismiss delay in milliseconds (0 to disable).
- Autohide bool
- Overrides Bootstrap autohide behavior.
- AutoShow bool
- Controls automatic show after load.
- CloseButton bool
- Shows or hides the close button.
- Message string
- Toast message text.
- Position TablerToastPosition
- Toast container position. Possible values: TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight
- Possible values:
TopLeft,TopCenter,TopRight,BottomLeft,BottomCenter,BottomRight - Title string
- Toast title.
- Type TablerToastType
- Toast type (visual style). Possible values: Default, Success, Warning, Danger, Info
- Possible values:
Default,Success,Warning,Danger,Info
Outputs
HtmlForgeX.TablerToast