lity icon indicating copy to clipboard operation
lity copied to clipboard

Template option with Programatic event handler

Open elixirgraphics opened this issue 4 years ago • 2 comments

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);

elixirgraphics avatar Nov 05 '19 20:11 elixirgraphics

click.lity?

impactcolor avatar Nov 13 '19 17:11 impactcolor

If I’m not mistaken the template is rendered (and hidden) on page load so I don’t think that’s possible.

naton avatar Nov 16 '19 08:11 naton