Open MagnusOxlund opened 2 months ago
Hello,
Yes, but I'd suggest to have it as another option, such as previewTemplateElement
maybe. Want to work on a PR for this?
My developer time is owed elsewhere for the next while, but I'll be happy to submit a PR later if it remains up for grabs.
Currently,
options.previewTemplate
expects a string (e.g.,HTMLElement
serialized usinginnerHTML
):https://github.com/NicolasCARPi/dropzone/blob/master/src/options.js#L553C1-L567C43:
I think it would be a natural progression to accept and automatically instantiate an HTMLTemplateElement here in addition to serialized HTML.