lity
lity copied to clipboard
Template option with Programatic event handler
Is there a way to pass a custom template
when calling Lity as a programatic event handler?
I was hoping something like this would work, but I cannot seem to get it to work:
$(document).on('click.lity', '#lity-target', {
esc: false,
template: 'INSERT CUSTOM TEMPLATE HERE'
}, lity);
click.lity?
If I’m not mistaken the template is rendered (and hidden) on page load so I don’t think that’s possible.