onClick for notifications?
Closed this issue · 3 comments
LCastr0 commented
Is there a way to use onClick events on notifications?
Like opening a url when clicking that notification
thecodeholic commented
Well, there is no direct event in plugin, but plugin initialization returns plugin instance which has $el
property which refers to jquery object of notification.
var notify = Lobibox.notify("error", {
msg: "message"
});
notify.$el.on('click', function(){
console.log("works");
});
LCastr0 commented
Thanks!
thecodeholic commented
Added onClick
event