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( theMessage as GraffitiWebAlertMessage, theButton as GraffitiWebAlertButton ) | |
MessageClosed( theMessage as GraffitiWebAlertMessage ) |
MessageShown(message as GraffitiWebAlertMessage) | Raised after an alert is show in the browser. |
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
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