Allow tooltip.showTooltip to either be called with a reference DOM element or text and an anchor.

issue #2762