Skip to content

Javascript API

Scott Elwood edited this page Aug 4, 2017 · 8 revisions

Options

popoverElement

The popover element

example
document.body.querySelector('.example')
type
DOM Node
default
null

triggerElement

popoverElement
The popover element which will be positioned.
Option Description Values Example Default
popoverElement* The popover element HTML Node document.body.querySelector('.example')
attachmentElement* The attachment element HTML Node document.body.querySelector('.example')
triggerElement The trigger element HTML Node document.body.querySelector('.example')
constraints The list of boundaries that will be used for positioning. Array [{ popover: 'top left', attachment: 'right center' }, { popover: 'bottom center', attachment: 'top right' }]
showOn The event on the trigger for which to show the popover on. String HTML Event such as: 'click', 'mouseenter', 'mouseleave', etc.
hideOn The event on which to hide the popover on. String HTML Event such as: 'click', 'mouseenter', 'mouseleave' OR 'documentClick'

popoverElement

This is the popover element which will get 
  • attachmentElement
  • triggerElement
Clone this wiki locally