Enumerators
Each enum can be imported from
vue-snotify
SnotifyPosition
- leftTop:
"leftTop" - leftCenter:
"leftCenter" - leftBottom:
"leftBottom" - rightTop:
"rightTop" - rightCenter:
"rightCenter" - rightBottom:
"rightBottom" - centerTop:
"centerTop" - centerCenter:
"centerCenter" - centerBottom:
"centerBottom"
SnotifyStyle
- simple:
"simple" - success:
"success" - error:
"error" - warning:
"warning" - info:
"info" - async:
"async" - confirm:
"confirm" - prompt:
"prompt"
Example
import {SnotifyPosition, SnotifyStyle} from 'vue-snotify';
vm.$snotify.create({
title: 'Example title',
body: null,
config: {
position: SnotifyPosition.rightTop,
type: SnotifyStyle.info,
}
})