# Notification
Class
## About
`Notification` is a short message that `Editor.ShowMessage` shows over the editor. Its `Type` chooses the theme color it is drawn with: `ThemeColors.Information`, `Success`, `Warning`, or `Danger`. `Title` is optional and shown in bold above `Message`.
A notification disappears when it is clicked or after `Duration` seconds; a `Duration` of zero keeps it until it is clicked. The editor's own error messages, such as an image that cannot be opened, are shown this way with the `Danger` type.
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| Types | Info <br > Success <br > Warning <br > Danger | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | message As String <br> type As Types = Types.Info <br> title As String = "" | (None) | Creates a notification with the supplied message, type, and optional title. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Duration | Double | 15 | Gets or sets how many seconds the notification stays before it disappears on its own. Zero keeps it until it is clicked. |
| Message | String | (None) | Gets or sets the notification's text. |
| Title | String | (None) | Gets or sets the optional bold heading shown above the message. |
| Type | GraffitiProEditor.Notification.Types | (None) | Gets or sets the kind of notification, which chooses its theme color. |
## Examples
```xojo
Editor.ShowMessage(New GraffitiProEditor.Notification("The document was saved.", GraffitiProEditor.Notification.Types.Success))
Var warning As New GraffitiProEditor.Notification("Two users are editing this table.", GraffitiProEditor.Notification.Types.Warning, "Shared Table")
warning.Duration = 0
Editor.ShowMessage(warning)
```