GithubHelp home page GithubHelp logo

jcallout's Introduction

Callout is a balloon div that connects text, symbols, images to an element or a group of elements.

jCallout is jQuery implementation of callouts.

Here is a Live Demo (I'll be updating this page with further version releases)

Advantages

  • Easy to use and implement
  • Only CSS+JQuery implementation (no images required).
  • Customizable options

Usage

Basic:

    $('#testDiv').jCallout({message:"hello there. This is a test"});

With options:

    $('#testDiv').jCallout({
       message:"hello there. This is a test",
       position:"right", //other possible values- 'top', 'bottom', 'left'
       backgroundColor:"cyan", //hex code can be used
       textColor:"#fff",
       borderColor:"cyan",
       showEffect:"blind", //see http://jqueryui.come/demos/show/ for other possible values
       showSpeed:500, //500 miliseconds
       hideEffect:"explode", //see http://jqueryui.come/demos/hide/ for other possible values
       hideSpeed:"fast"
    });

Click to open:

    var $testDiv = $('#testDiv');
    $testDiv.jCallout('initWithoutShow', { message: 'Hello world!' });
    $testDiv.click(function() { $testDiv.jCallout('show'); });

Supressing the "close" button:

    $testDiv.jCallout({ message: 'Hello world!', $closeElement: $('') });

Using the 'close' icon from JQuery UI:

    $testDiv.jCallout({
       message: tipText,
       $closeElement: $('<span/>', {'class':'ui-icon ui-icon-circle-close','style':'float: right'})
    })

Events:

    $('.test4').jCallout('hide');//hide callout associated with the selected element(s)
    $('.test4').jCallout('show');//show callout associated with the selected element(s)

Future releases will have more options and event handling

jcallout's People

Contributors

anupamsmaurya avatar nebupookins avatar

Watchers

 avatar  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.