You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* A string that contains the template used for each dropped
* file. Change it to fulfill your needs but make sure to properly
* provide all elements.
*
* If you want to use an actual HTML element instead of providing a String
* as a config option, you could create a div with the id `tpl`,
* put the template inside it and provide the element like this:
*
* document
* .querySelector('#tpl')
* .innerHTML
*
*/
previewTemplate: defaultPreviewTemplate,
I think it would be a natural progression to accept and automatically instantiate an HTMLTemplateElement here in addition to serialized HTML.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: