@hokid/webapp-service-vufycations
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Usage

import Vue from 'vue';
import Vufycations from '@hokid/webapp-service-vuefycations';
import EE from 'events';

Vue.use(Vufycations, {
  EventEmitter: EE,
  default: {
    duration: 4000,
    position: 'is-bottom-right',
    type: 'is-info'
  },
  events: [
    {
      name: 'event-a',
      toast: {
        message: 'Event A happens',
        type: 'is-info'
      }
    },
    {
      name: 'event-b',
      toast(event) {
        const message = event.message;

        return {
          message: 'Event B happens, message: ' + message,
          type: 'is-info'
        };
      }
    }
  ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i @hokid/webapp-service-vufycations

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

5.41 kB

Total Files

5

Last publish

Collaborators

  • hokid