This PR adds the public method setButton which accepts a DOM selector string or DOM element, and will update this.button and this.buttonCoords accordingly. This is useful when the button element does not yet exist or for reusing the same popover for different button elements.
This PR adds the public method
setButton
which accepts a DOM selector string or DOM element, and will updatethis.button
andthis.buttonCoords
accordingly. This is useful when the button element does not yet exist or for reusing the same popover for different button elements.