Skip to content

yututi/poppuappu

Repository files navigation

poppuappu

notification popup plugin for vue.js.

Rerquirements

  • Vue : 2.X

Demo

clone this repository and run npm i && npm run dev.

Installation

npm i poppuappu

How to use

register this plugin.

import Vue from 'vue'
import Poppuappu from 'poppuappu'
Vue.use(Poppuappu)

namespace $poppuappu will appear Vue object.
you can display popup via show method.

// in the Vue component.
this.$poppuappu.show('some text.')
// compatible notification levels are belows.
this.$poppuappu.show('this is info notification.' { mode: 'info' })
this.$poppuappu.show('this is warn notification.' { mode: 'warn' })
this.$poppuappu.show('this is error notification.' { mode: 'error' })

// you can also use $poppuappu in global.
Vue.$poppuappu.show('some text.')