0.3.6 • Published 5 months ago

vue-notibar v0.3.6

Weekly downloads
25
License
MIT
Repository
github
Last release
5 months ago

Description

Customizable notification bar for Vue 2 applications.

Installation

Using npm

$ npm i vue-notibar

or CDN

<script src="https://unpkg.com/vue@2.5.17/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

0.3.6

5 months ago

0.3.5

5 months ago

0.3.4

5 months ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago