See Also

Enumerations

Name Values
MessagePositions Top
TopLeft
TopCenter
TopRight
Center
CenterLeft
CenterRight
Bottom
BottomLeft
BottomCenter
BottomRight
MessageThemes Bootstrap3
Bootstrap4
Light
MetroUI
Mint
Nest
Relax
SemanticUI
Sunset
MessageTypes Info
Alert
Success
Warning
Error

Constants

Name Type Value
This class exposes no constants

Events

Definition Description
ButtonClicked( messageName as String, buttonName as String ) This event is fired when an alert has been displayed and the user subsequently clicks one of the buttons on that dialog.
ButtonClicked_O( theMessage as GraffitiWebAlertMessage, theButton as GraffitiWebAlertButton )
MessageClosed( messageName as String ) This event is fired when an alert has been displayed and is then subsequently closed.
MessageClosed_O( theMessage as GraffitiWebAlertMessage )

Methods

Definition Description
CloseAll() Closes all currently open messages.
CloseMessage( theMessage as GraffitiWebAlertMessage ) Closes the specified message.
CloseMessage( messageName as String ) Closes the message whose name matches messageName.
Show( theMessage as GraffitiWebAlertMessage ) Shows the specified message.

Properties

Name Type Default Value Description
This class exposes no properties.

Examples

Handling Button Clicks

GraffitiWebAlert has two methods for catching when GraffitiWebAlertButtons are clicked on the GraffitiWebAlertMessage instance. The first, ButtonClick, simply provides string parameters for handling simple messages. The second, ButtonClick_O has object parameters for more advanced usage.

A typical implementation may look like this:

Sub ButtonClick_O(theMessage as GraffitiWebAlertMessage, theButton as GraffitiWebAlertButton) Handles ButtonClick_O
  select case theMesage.Name
  case "yesNo"
    if theButton.Name = "yes" then
      ' User clicked yes.
    else
      ' User clicked no.
    end if
  case "yesNoCancel"
    if theButton.Name = "yes" then
      ' User clicked yes.
    elseif theButton.Name = "no" then
      ' User clicked no.
    else
      ' User clicked cancel.
    end if
  end select
End Sub