Package Exports
- vue-notification
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-notification) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
- Incude "nice-notifications" component in your app/body.
<nice-notifications/>
- In anyVue component call
this.$notify(params)
fuction to show notification.
this.$notify({
...
});
Api
this.$notify({
group: 'foo',
type: 'warning',
title: 'This is title',
text: 'This is <b> content </b>'
})
Style
You can write your own css styles for notifications:
Structure:
# SCSS:
.notification.my-style {
# Style of the notification itself
.notification-title {
# Style for title line
}
.notification-content {
# Style for content
}
&.my-type {
# Style for specific type of notification, will be applied when you
# call notification with "type" parameter:
# this.$notify({ type: 'my-type', message: 'Foo' })
}
}
To apply this style you will have to specify "classes" property:
<notifications classes="my-style"/>