Minimalist Toast Notification & Confirm Dialog Library – ui-notify

Category: Javascript , Notification | June 5, 2017
Author: backToNature
Views Total: 2,611
Official Page: Go to website
Last Update: June 5, 2017
License: MIT

Preview:

Minimalist Toast Notification & Confirm Dialog Library – ui-notify

Description:

ui-notify is a small JavaScript library used for displaying minimal, clean toast notifications and alert/confirm dialog boxes on the webpage.

How to use it:

Install and import the ui-notify to your project.

<script src="ui-notify.js"></script>

Create a basic toast message.

Notify.toast('Toast message here', {
  fn: function () {
    // callback function
  }
})

Create an alert dialog.

Notify.alert('Alert Message')

Create a confirm dialog.

Notify.confirm({
  title: 'Confirm Dialog',
  left: 'Cancel',
  right: 'Okey',
  class: '',
  modal: false,
  fn: function () {}
});

You Might Be Interested In:


Leave a Reply