1.1.5 • Published 6 years ago

v-toaster-evolution v1.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

v-toaster-evolution npm Vue

=========

A Vue.js component - Notification

Installation

Using yarn

yarn add v-toaster-evolution

Using npm

npm i --save v-toaster-evolution

Demo

DEMO

Usage

Bundler (Webpack, Rollup)

import Vue from 'vue'

import ToasterE from 'v-toaster-evolution'

// You need a specific loader for CSS files like https://github.com/webpack/css-loader
import 'v-toaster-evolution/dist/v-toaster-evolution.css'

// optional set default imeout, the default is 10000 (10 seconds).
Vue.use(ToasterE, {timeout: 5000})

Browser

<!-- Include after Vue -->
<link rel="stylesheet" href="v-toaster-evolution/dist/v-toaster-evolution.css"></link>
<script src="v-toaster-evolution/dist/v-toaster-evolution.js"></script>
<script>
  Vue.use(VToasterEvolution, {timeout: 5000})
</script>

Usage example

// in your component this.$toasterE
// ...
this.$toasterE.success('Your toaster success message.')
// or custom timeout
this.$toasterE.success('Your toaster success message.', {timeout: 8000})

this.$toasterE.info('Your toaster info message.')
this.$toasterE.error('Your toaster <b style="color:#cc0000;">error</b> message.', {html:true})
this.$toasterE.warning('Your toaster warning message.')

// or custom add method
this.$toasterE.add('Your toaster theme message.', {theme: 'info', timeout: 10000})

//or custom add method with mark
this.$toasterE.add('Load Document...', {theme: 'info', timeout: 10000, mark:3})
this.$toasterE.add('Process Complete', {theme: 'success', timeout: 1000, mark:3})

//or custom add method with mark and  html
this.$toasterE.add('Hola, esto es una  <i>prueba</i>', {theme: 'info', timeout: 10000, mark:6,html:true})
this.$toasterE.add('Load <i style="color:#cc0000;">prueba</i> ', {theme: 'warning', html:true})
// ...

License

This project is licensed under MIT License

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago