Skip to content
easyNotify is a simple plugin for jQuery.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
easyNotify.js Create easyNotify.js Aug 23, 2016

README.md

easyTable is a simple plugin for jQuery to send notifications.

Support

easyTable is a simple plugin for jQuery to send notifications.

Installation

Include script after the jQuery library:

<script src="easyNotify.js"></script>

Usage

Basic setup:

<div id="easyNotify"></div>  <!-- HTML -->
$("#easyNotify").easyNotify(); // JS

Options can be pass by object like:

var options = {
      title: "Notificação",
      options: {
        body: "O melhor do Brasil são os Brasileiros.",
        icon: "icon.png",
        lang: 'pt-BR',
      }
    };

$("#easyNotify").easyNotify(options);

Functions can be pass by param to run on methods like onclose

var myCloseInfo = function(){
    alert('this is a callback function that runs after close the notification.');
};

var options = {
      title: "Notificação",
      options: {
        body: "O melhor do Brasil são os Brasileiros.",
        icon: "icon.png",
        lang: 'pt-BR',
        onClose: myCloseInfo
      }
    };

$("#easyNotify").easyNotify(options);

Demo

easyNotify

Author

Gabriel Rodrigues

You can’t perform that action at this time.