Giter Club home page Giter Club logo

jquery-message-toaster's Introduction

jQuery Message Toaster

A simple easy to use jQuery based message toaster. Fully configurable, and customizable options available.

version npm PyPI

Download from npm

Run npm install jquery-message-toaster

How to use

  • Import toaster.js and use this code where you want to show the toaster
var toaster = new Toaster({
    'text': 'Hi',
    'color': '#FFF',
    'background': '#333',
    'verticalPosition': 'top',
    'horizontalPosition': 'right',
    'container' : '#id'
});
  • Use toaster.publish(); to show the toaster.

Configurable options available in Toaster

Key Default Value Use
color #333 Text color of Toaster content.
background #FFF Background color of the toaster.
verticalPosition bottom Vertical position of toaster. Can take two values - top, bottom
horizontalPosition right Horizontal position of toaster. Can take two values - left, right
container #toasterContainer Element that holds the toaster html.
text Hello !! Text content of toaster.
width 290px Width of toaster box.
height 40px Height of toastr box.
padding 5px Padding inside toaster box.
corderRadius 5px Corner radius of toaster box.

jquery-message-toaster's People

Contributors

rudrakshpathak avatar

Watchers

James Cloos 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.