Skip to content

An alternative to Twitter Bootstrap's Popover plugin.

Notifications You must be signed in to change notification settings

dennispg/simple-popover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Popover

This serves as an alternative to Twitter Bootstrap's Popover plugin.

How to use

This is, afterall, a jQuery plugin. You are going to have to include jQuery. Once done, you can can simply call the simplePopover method, and it should work.

$('myobject').simplePopover({ content: "Hello, World!" });

And boom! Should be ready.

Of course, you can pass additional options to the simplePopover method. And here they are:

{
    // An HTML string that represent what content should be inside the
    // popover.
    content: "<p>Hello, World!<p>",

    // A number that represents how much padding that you would want in the
    // popover's white area.
    padding: 4,

    // A string representing the popover's orientation. Accepts either the
    // values "right", "left", "top", or "bottom". Defaults to "top".
    position: "top"
}

Limitation Over Bootstrap's Popover

It doesn't cover "toggleable" popovers. You'd have to use Bootstrap's popover plugin.

About

An alternative to Twitter Bootstrap's Popover plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published