1.2.1 • Published 7 years ago

mz-vue-toast v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Overview

vue-toast is a mobile toast plugin for vue.js.

Installation

First, install mz-vue-toast from npm or bower:

$ npm install mz-vue-toast
$ bower install mz-vue-toast

Usage

// before start
import Vue from 'vue';
import Toast from 'mz-vue-toast';
Vue.use(Toast);

Basically you can pass a string to Toast:

Vue.toast.info('test');
Vue.toast.success('success');
Vue.toast.error('error');

Or invoke Toast with an object as its configuration:

Vue.toast.info({
  message: 'test',
  duration: 3000,
  className: 'my-class'
});

API

OptionDescriptionValueDefault
messagecontent of the toast
durationtime before the toast vanishes, in millisecond3000
classNamecustom class name of the toast
positionposition of the toast'top' 'middle'
callbackcallback after toast hide

License

MIT

1.2.1

7 years ago

1.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago