Add link to notification


Topic: Add link to notification

iparker asked 5 years ago

Hello,

is there a way to add an link to a notification? I want to place an undo-link in it.

I tried following code:

this.$notify.success({
     title: 'Titel...',
     message: 'Content... <a href="#">Undo?</a>',
     position: 'bottom right',
     timeOut: 5000
                });

But this outputs the html-code in the notification.

Thanks for some help with this!

Best regards,

Timo


Magdalena Dembna staff premium answered 5 years ago

Unfortunately, it's not possible at the moment - content is rendered with interpolation, not v-html directive. Kind regards, Magdalena


iparker answered 5 years ago

Hello Magdalena,

thanks for your reply.

Is there another way to solve this? Or another notification-plugin you can recommend?

Or is it planned for the future to add links to notifications?

Best regards,

Timo


Magdalena Dembna staff premium commented 5 years ago

I added this task to our idea board - watch our changelog for the updates on this feature. Kind regards, Magdalena


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.2.0
  • Device: x
  • Browser: x
  • OS: x
  • Provided sample code: No
  • Provided link: No