title: JQuery noty buttons click event
body: <p>I am using Jquery noty to display notification to the user, </p>
  
  <blockquote>
    <p>I need to know how can I catch the  confirm buttons click event to
    preventDefault for each button.</p>
  </blockquote>
  
  <pre><code>noty({
      text: message,
      layout: position, "type": type,
      buttons: [
               {addClass: 'btn btn-primary', text: 'Ok', onClick: function ($noty) {    
                              $noty.close();
                          }
                },
                {addClass: 'btn btn-danger', text: 'Cancel', onClick: function ($noty) {
                              $noty.close();
                          }
                      }
                  ]
              });
  </code></pre>
  
  <p>Please Advice,</p>