#Rerender Dialog

1 messages · Page 1 of 1 (latest)

lost oak
#

Here's what I have under render for the Dialog.

render: async html => {
  let fileInput = document.querySelector('#savaged-json-files')
 
  fileInput.addEventListener('change', async (event) => {
    files = event.target.files
    const characters = []
    for (const file of files) {
      let json = file.text()
      let stringData = JSON.parse(json)
      characters.push(stringData)
    }
   // Update the dialog template here
 })
}
subtle gate
#

Couldn't you do this?

html.innerHtml = renderTemplate("path/to/my/handlebars.hbs");```
#

(assuming you have jQuery: false in options)