HxToast

Bootstrap Toast component. Not intented to be used in user code, use HxMessenger. After first render component never updates.

Usage

See HxMessenger documentation.

API

Parameters

Name Type Description
AutohideDelay int? Delay in miliseconds to automatically hide toast.
ContentTemplate RenderFragment Content (body) template.
ContentText string Content (body) text.
CssClass string Css class to render with toast.
HeaderIcon IconBase Header icon.
HeaderTemplate RenderFragment Header template.
HeaderText string Header text.
ShowCloseButton bool Indicates whether to show close button.

Event callbacks

Name Type Description
OnToastHidden EventCallback Fires when toast is hidden (button or autohide).

HxToastContainer

API

Parameters

Name Type Description
ChildContent RenderFragment Toasts to display.
CssClass string Additional CSS class.
Position ToastContainerPosition Positioning of the toasts on screen.
An unhandled error has occurred. Reload 🗙