Closed elkirkmo closed 11 years ago
Hi,
Template engine isn't string-based, it's DOM-based. So you'll need to modify attributes directly. There is markupParse
callback that will help you.
callbacks: {
markupParse: function(template, values, item) {
// Triggers each time when content of popup changes
// console.log('Parsing:', template, values, item);
template.find('.email').attr('href', "mailto:?subject="+values.title+"&body="+values.title+":"+item.src);
// e.t.c.
}
}
Hi, I'd like to pull the img url and title for use with some social buttons, but everything I try just breaks the plugin. Is there a way I can add the url and title to markup: without it breaking the plugin. I'd like it to work like this:
Any ideas how to pull that off?