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.
- Host: GitHub
- URL: https://github.com/phase2/dynamicpopover
- Owner: phase2
- Created: 2013-04-01T22:12:00.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-02T23:46:09.000Z (almost 13 years ago)
- Last Synced: 2025-05-15T18:51:37.241Z (10 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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