Comments (3)
@dbettin unfortunately it's not possible to call it from vuex at the moment because it's tied to the local vue instance. It could possibly be modified to allow that similar to http://element.eleme.io/#/en-US/component/notification but I'll have to look into that
from vue-notifyjs.
👍
from vue-notifyjs.
Hi @dbettin @ligne13
Released a new version which should make this possible
You can now do this
import {Notification} from 'vue-notifyjs'
Notification.notify({type: 'danger', message: 'My message'})
https://codesandbox.io/s/n7jvkz21y0
More details here https://github.com/cristijora/vue-notifyjs/releases
PS: You need to initialize the plugin anyway if you want to use this feature.
This should allow using the Notification
inside vuex modules/store since it's not tied to component instances in this case.
from vue-notifyjs.
Related Issues (20)
- Catch the click event on the entire message HOT 4
- Demos are broken HOT 2
- close all notifications manually HOT 4
- Demos do not work HOT 1
- Update version with close method
- Yarn lock on gitignore
- Closing fixed notifications not working HOT 5
- Use with vee-validate ? HOT 1
- Failed to register component after updating to v0.4.3 HOT 5
- Passing props to message component HOT 2
- Plugin not loading HOT 1
- Custom html error HOT 1
- SSR (Nuxt) support
- [ASK] How to call notify from js files
- Fiddles dont work HOT 2
- babel-helper-vue-jsx-merge-props is missing as dependency
- Jsfiddle Error
- The vue-notifyjs Usage with Html5 !~~~~~
- Need support for asynchronous notifications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-notifyjs.