2.0.0 • Published 8 years ago

vue-toast-mobile v2.0.0

Weekly downloads
26
License
MIT
Repository
github
Last release
8 years ago

Overview

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

Installation

First, install vue-toast-mobile from npm:

$ npm install vue-toast-mobile

Then use it:

// ES6 mudule
import Toast from 'vue-toast-mobile';

// CommonJS
const Toast = require('vue-toast-mobile').default;

Usage

Basically you can pass a string to Toast:

Toast('Upload Completed');

Or invoke Toast with an object as its configuration:

Toast({
  message: 'Upload Completed',
  position: 'bottom',
  duration: 5000
});

API

OptionDescriptionValueDefault
messagecontent of the toast
positionlocation of the toast relative to viewport'top' 'bottom' 'middle''middle'
durationtime before the toast vanishes, in millisecond3000
classNamecustom class name of the toast
iconClassclass name of the optional icon font

License

MIT

2.0.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago