@3yourmind/vue-yodify

A Vue.js notification plugin with easy installation and usage
1,143
Install
npm install @3yourmind/vue-yodify
Latest Version:0.2.9
Vue:2
License:MIT
Last Updated:Nov 27, 2018
Links: npm
Maintainer: felix_bauer

vue-yodify by 3YOURMIND

Description

A simple Vue.js plugin to enable notifications with ease.

Dependencies

Name Version Information
vue 2.x

Installation

yarn add @3yourmind/vue-yodify

or

npm i @3yourmind/vue-yodify

How to use

You need to register this library as a plugin. So you need to find the file where you are registering Vue.js. In the most common case this will be the file src/main.js. Inside this file you need to import this library and bind it to Vue.js.

import Vue from 'vue';
import VueYodify from '@3yourmind/vue-yodify';

Vue.use(VueYodify);

Then you need to register a global component in your app so the library can find the component somehow. To do this go to your root component and extend it by using the component once.

<template>
  <div id="app">
    <vue-yodify />
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'app',
};
</script>

After registering the component you can call it globally by using the Vue instance in the script part of a component.

this.$yodify({
  text: 'This was successful :)',
  type: 'success', // optional, default
  duration: 3000, // optional, default
});

Contributors


igeligel

Contributions: 11


ostoc

Contributions: 4


dodekeract

Contributions: 12

License

vue-yodify is released under the MIT License.

Related Packages

vue-responsive

A plugin for responsive design without media querys for Vue.js 2.x

25,134 97
vue-toastification

Toasts for Vue made easy!

8,941,430 3,362
@brackets/vue-toastification

Toasts for Vue made easy with custom component!

18,111 1
@koumoul/v-iframe

Iframes with aspect ratio, iframe resizer integration and some corner cases.

4,186 3
@notifi/vue

Vue 3 adapter for Notifi - headless notifications

1,618 2

Version History

Version Released Vue License
0.2.9 ^2.5.17 MIT
0.2.7 ^2.5.16 MIT
0.2.6 ^2.5.16 MIT
0.2.5 ^2.5.16 MIT
0.2.4 ^2.5.16 MIT
Pre-releases (1)
Version Released Vue License
0.0.1-beta ^2.4.4 MIT