Open elixirgraphics opened 5 years ago
Is there a way to pass a custom template when calling Lity as a programatic event handler?
template
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.
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: