1.0.5 • Published 7 years ago

awesome-vue-toast v1.0.5

Weekly downloads
15
License
-
Repository
-
Last release
7 years ago

awesome-vue-toast

:whale: awesome vue2 simple toast

npm package

  • Can be singleton
  • Programmable

Changed from AStaroverov/vue-toast

Example

Live demo

Screenshot

screenshot

Install

npm i -S awesome-vue-toast

Usage

import Toast from 'awesome-vue-toast'
...
Toast.showToast('Enjoy toast!')

Singleton

<body>
  ...
  <script src="./awesome-vue-toast/build/js/toast.js"></script>
  <script>
    ...
    Toast.showToast('Enjoy toast!')
    ...
  </script>
  ...
</body>

Option

Toast.addMessage({
  text: 'This is success type',
  type: 'success',
  dismissAfter: 3 * 1000
})
optiontypedefaultother value
textString
typeStringinfosuccess, warning, danger
dismissAfterInt5 * 1000milliseconds

Development / build

npm run dev # development
npm run build # build

For customization props

propsdefaultother valuedescription
positionsen, s, nw, ne, sw, senorth, south, north west, ...
1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago