## Flash message
Displays a floating flash message on the screen.
### Display onload
```html
This message is created from a static element. It will go away in 5 seconds.
```
This message is created from a static element. It will go away in 5 seconds.
### Trigger
Show Success
Show Error
Show Warning
### Display static
A flash message can be rendered as a static element by attaching the `static` class. The `data-control` attribute is not needed.
Import completed successfully (success)
Informative info box is informational (info)
Phasers have been set to stun (warning)
We couldn't help you with that (error)
### Data attributes
- data-control="flash-message" - enables the flash message plugin
- data-interval="2" - the interval to display the message in seconds, optional. Default: 2
### JavaScript API
```js
$.oc.flashMsg({
'text': 'Record saved.',
'class': 'success',
'interval': 3
})
```