Skip to main content
Version: 3.5

AlertBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Displays an alert box that can contain an icon and text that inform and instruct the user. Alert boxes are not modal and can disappear automatically.

public class AlertBox : Component

Methods

Static memberShow(text, icon, showCloseButton, alignment, autoCloseDelay, onclose, showProgressBar, allowHtml)

Displays an alert box with the specified text and icon in the specified position.

ParameterTypeDescription
textStringThe text to display in the message box. Newlines (CRLF) are converted to <BR/> when the text doesn't contain any html.
icon optionalMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
showCloseButton optionalNullable<Boolean>Shows or hides the close button. If not set it's managed automatically.
alignment optionalContentAlignmentOne of the ContentAlignment values that specifies where on the screen to display the alert box.
autoCloseDelay optionalInt32A value in milliseconds that determines the delay after which the alert box disappears automatically. The default is 5000 (5 seconds). If set to 0 the box stays open.
onclose optionalActionOptional async handler for the close event; called when the Alert Box is closed either automatically or by the user.
showProgressBar optionalNullable<Boolean>Shows a progress bar to display the time remaining until the alert box is automatically closed. If left null, it's managed by the theme.
allowHtml optionalBooleanAllows the message text to include HTML code.

Implements

NameDescription
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.