Skip to content

phase2/dynamicPopover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors