I'd like to include interactive content in a tooltip [that's created using Tooltipster]. A simple example:
$('a').tooltipster({
contentAsHTML: true,
content: '<span><a href="#">Tooltip click me</a></span>',
theme: 'tooltipster-light',
interactive: true
});
http://jsfiddle.net/qrbsug8r/2/
The goal is to have the "Tooltip click me" link in the Tooltip content trigger a typical Mithril draw cycle.
My questions are how do I render the tooltip content using standard Mithril, and how do I hookup the onclick event? For example, if I were not using Tooltipster I might do:
m('span', m('a', {
'href': '#',
'onclick': ctrl.someFunc
}))