0.2.9 • Published 5 years ago

@3yourmind/vue-yodify v0.2.9

Weekly downloads
68
License
MIT
Repository
-
Last release
5 years ago

vue-yodify by 3YOURMIND

Description

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

Dependencies

NameVersionInformation
vue2.xnpm.io npm.io

Installation

or

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

License

vue-yodify is released under the MIT License.

0.2.9

5 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.1-beta

7 years ago