various fixes

This commit is contained in:
MathMan05 2024-09-10 13:50:53 -05:00
parent baa224ab91
commit 72ac3a14ed
8 changed files with 50 additions and 3 deletions

View file

@ -544,6 +544,12 @@ class Options {
this.generate(text);
return text;
}
addForm(name, onSubmit, { ltr = false, submitText = "Submit", fetchURL = "", headers = {}, method = "POST", traditionalSubmit = false } = {}) {
const options = new Form(name, this, onSubmit, { ltr, submitText, fetchURL, headers, method, traditionalSubmit });
this.options.push(options);
this.generate(options);
return options;
}
generate(elm) {
const container = this.container.deref();
if (container) {