andrepolischuk/messg

Callback when message with delay is clicked

aldebaran798 opened this issue · 2 comments

Hi! congratulations for your project.

Is possible call a function when a message is clicked, but not fire the function when delay option auto-hide the message?

Currently you can attach callback for close message without buttons:

messg('Hello').hide(() => {
  // ...
})

or attach callbacks for click on buttons:

messg('Hello').button('Ok', () => {
  // ...
})

Thank you!