An open API service indexing awesome lists of open source software.

https://github.com/phase2/dynamicpopover

An implementation of Twitter Bootstrap's popover class with a required option for a jquery selector. Allows dynamic content in popovers.
https://github.com/phase2/dynamicpopover

Last synced: 6 months ago
JSON representation

An implementation of Twitter Bootstrap's popover class with a required option for a jquery selector. Allows dynamic content in popovers.

Awesome Lists containing this project

README

          

# Dynamic Popovers

Takes the Bootstrap Popover class and adds a parameter to pass a query selector, object or a DOM element as an option. The first element in this set will be used as the content for the popover, this allows consistently manipulable content with events.

## Usage
Simply initialize like

$('trigger').dynamicPopover({
selector: '.popover', // Where the content will be derived from
closeButton: false, // Whether to add a modal style close button to the popover
onClose: function(){}, // A callback for when the close button is clicked
// Any desired bootstrap popover options are supported also
})

## Requires

* jQuery
* Twitter Bootstrap with ToolTip javascript