HubSpot/drop

allow options.content to be a function returning an element (not HTML string) called on each open

Closed this issue · 2 comments

Similar to 195fa0e, I'd like the option to supply Drop with a content-generating function that returns an HTMLElement (rather than a string that is assigned to @content.innerHTML). The main advantage I hope to gain here is that event handlers & other data on the original content element will be preserved when passed to Drop.

b-ash commented

Seems reasonable. I'm happy to look at a PR if you want to whip something up.

cool, see #63