Coder Social home page Coder Social logo

iq-scm / meow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zacstewart/meow

0.0 0.0 0.0 271 KB

A Growl work-a-like plugin for jQuery

Home Page: http://zacstewart.com/projects/meow.html

License: Other

JavaScript 40.45% CSS 31.84% HTML 27.71%

meow's Introduction

jQuery Meow

A plugin to provide Growl-like notifications. Will support bindings for various jQuery events and ability to 'meow' the content of a bound element (e.g. a Rails flash on load) or a message passed as an argument (e.g. button clicks).

endorse

Usage example

var options = {
  title: 'Meow Example',
  message: 'Hello, World!',
};

$.meow(options);

See more examples.

Options

Key Type Default Description
message String, Object null Either a string or a jQuery selected element. If it's an element, Meow will use its value, innerHTML or innerText depending on its type.
title String null If a string is given, the meow's title will reflect it. However, if you do no set this and use a selector element in message, it will default to the title attribute of that element if available.
icon String null Sets the image URL for the icon
duration Number 5000 Sets the duration of of the meow in milliseconds. Any positive, numeric value (including Infinity) is acceptable.
sticky Boolean false Sets the meow to never time out. Has the same effect as setting duration to Infinity.
closeable Boolean true Determines whether the meow will have a close (ร—) button. If false, yout must rely on the duration timeout to remove the meow.
container String null Sets the root element the meow should be contained within. Be default, meows will be put in an auto-generated container.
beforeCreateFirst Function null Gets called just before the first meow on the screen is created.
beforeCreate Function null Gets called just before any meow is created.
afterCreate Function null Gets called right after a meow is created.
onTimeout Function null Gets called whenever a meow times out.
beforeDestroy Function null Gets called just before a meow gets destroyed.
afterDestroy Function null Gets called right after a meow gets destroyed.
afterDestroyLast Function null Gets called after the last meow on the screen is destroyed.

meow's People

Contributors

benwilson avatar hubefonseca avatar mjangda avatar nickylaczko avatar zacstewart avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.