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.
CssClass string Css class to render with toast.
HeaderIcon IconBase Header icon.
HeaderText string Header text.
HeaderTemplate RenderFragment Header template.
ContentText string Content (body) text.
ContentTemplate RenderFragment Content (body) template.
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
Position HxToastContainerPosition Positioning of the toasts on screen.
CssClass string Additional CSS class.
ChildContent RenderFragment Toasts to display.
An unhandled error has occurred. Reload 🗙