feature: Allow arbitary HTML on argument form (useful for descriptions) (#519)

This commit is contained in:
James Read 2025-02-21 17:57:02 +00:00 committed by GitHub
parent cae5d296ca
commit f3bc82311d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -122,6 +122,11 @@ class ArgumentForm extends window.HTMLElement {
} }
} else { } else {
switch (arg.type) { switch (arg.type) {
case 'html':
domEl = document.createElement('div')
domEl.innerHTML = arg.defaultValue
return domEl
case 'confirmation': case 'confirmation':
this.domBtnStart.disabled = true this.domBtnStart.disabled = true