Home > front end >  How do i add a style to notifications in vue.js?
How do i add a style to notifications in vue.js?

Time:12-01

this.$notify({
        title: 'İşlem Başarılı',
        message: 'REQUEST SUCCESSFULLY SAVED',
        type: 'success',
        classes: 'notfClas'
      })

When i add a class it doesn't see it. How do i add a style to notifications ?

CodePudding user response:

If you are using the vue-notifications package you can manage it's settings (including the list of classes) via the component props as described here. Like:

<notifications classes="your-class-name"/>

There is also a small example that may be usefull http://vue-notification.yev.io/

CodePudding user response:

change classes to customClass

Attribute: customClass

Description: custom class name for Notification

https://element.eleme.io/#/en-US/component/notification

  • Related