JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q53992F
  • License MIT

Notification bar for the Vue apps

Package Exports

  • vue-notibar
  • vue-notibar/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-notibar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vue 2 Notibar

AppVeyor Build Status AppVeyor Tests Minimized fiel size Downloads per month Latest version License

Description

Customizable notification bar for Vue 2 applications.

Installation

Using npm

$ npm i vue-notibar

or CDN

<script src="https://unpkg.com/vue@2.7.16/dist/vue.min.js"></script>
<script src="https://unpkg.com/vue-notibar/dist/vue-notibar.min.js"></script>

Usage

import Vue from 'vue'
import VueNotibar from 'vue-notibar'

Vue.use(VueNotibar)
// or with options
Vue.use(VueNotibar, options)

this.$notibar.add('message')
// or with options
this.$notibar.add('message', options)

Options

{
    textColor: String,        // default '#FFFFFF'
    backgroundColor: String,  // default '#323232'
    time: Number,             // default 5000. Set null to disable timeout
    position: String,         // default 'center'. Possible values: 'left', 'center', 'right'
    dismiss: {
        show: Boolean,        // default false
        color: String,        // default '#FFFFFF'
    }
}

Live demo

JSFiddle