Giter Club home page Giter Club logo

simple-popover's Introduction

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.

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.