(
label: string,
formName: string,
{required = false, files = "one", clear = false, initImg = "", width = -1, objectFit = ""} = {},
)
| 2098 | } |
| 2099 | setValue(key: string, value: any) { |
| 2100 | //the value can't really be anything, but I don't care enough to fix this |
| 2101 | this.values[key] = value; |
| 2102 | } |
| 2103 | addSubOptions(name: string, {ltr = false, noSubmit = false} = {}) { |
| 2104 | if (this.button && this.button.deref()) { |
| 2105 | (this.button.deref() as HTMLElement).hidden = true; |
| 2106 | } |
| 2107 | return this.options.addSubOptions(name, {ltr, noSubmit}); |
| 2108 | } |
| 2109 | addSubButtonInput( |
| 2110 | textContent: string, |
| 2111 | onSubmit: (opt: Options) => void, |
| 2112 | {ltr = false, noSubmit = false, intText = ""} = {}, |
| 2113 | ) { |
| 2114 | return this.options.addSubButtonInput(textContent, onSubmit, {ltr, noSubmit, intText}); |
| 2115 | } |
| 2116 | addHTMLArea(html: (() => HTMLElement) | HTMLElement, onSubmit = () => {}) { |
no test coverage detected