notify plugin with click action
-
Hello community,
is there a possibility to add an click handler to a notify?this.$q.notify({ color: 'negative', message: 'Hello World', icon: 'report_problem', onClick: this.handleTheNotifyClick })
i like the visual appeareans / stacking of theme - but for the UI interaction it would be great to allow the user to just click on the popup and get directed to the correct sub page / paragrah what ever
if you have any tips or ideas please let me know!
sunny greetings
stefan -
Hi @s-light,
I made a remove item with the possibility to cancel before the remove ^^
TEMPLATE
<q-btn flat color="red" @click="removeAlerts" v-close-popup />
SCRIPT
methods: { removeAlerts() { this.$q.notify({ progress: true, message: "Item delete", color: "red", icon: "fa fa-trash", //with font awesome actions: [ { label: "Cancel", color: "white", handler: () => { this.cancelRemove = false; } } ] }); setTimeout(() => { if (this.cancelRemove) { delete this.data[this.data.id]; } }, 6000); this.cancelRemove = true; } },
-
thanks @Lurrik i will have a look what you are doing there the next days!
sunny greetings
stefan