vuejs-v1-noty
A Vue JS wrapper around Noty. Originally developed for Vue 2 by @renoguyon. NPM packages changed by @nateritter to support Vue 1.
Getting Started
Install using npm:
$ npm install vuejs-v1-noty
Import and register Vue plugin:
Vue
Import noty styles
Import stylesheet in your vue / js components:
Or, import styles in your less / scss stylesheet:
'~vuejs-noty/dist/vuejs-noty.css';
Usage
In your Vue.js components, simply call one of these methods:
// Basic alertthis$noty // Success notificationthis$noty // Error messagethis$noty // Warningthis$noty // Basic alertthis$noty
Configuration
Config defaults
You can set a default configuration object when registering the plugin. Example:
Vue
Config override
All of the alert methods can accept a config object as second parameter if you need to override the defaults. Example:
this$noty
For more information about available configuration properties, please read Noty's documentation.