()
| 1640 | const colorInput = new ColorInput(label, onSubmit, this, {initColor}); |
| 1641 | this.options.push(colorInput); |
| 1642 | this.generate(colorInput); |
| 1643 | return colorInput; |
| 1644 | } |
| 1645 | addMDInput(label: string, onSubmit: (str: string) => void, {initText = "", charLimit = -1} = {}) { |
| 1646 | const mdInput = new MDInput(label, onSubmit, this, {initText, charLimit}); |
| 1647 | this.options.push(mdInput); |
| 1648 | this.generate(mdInput); |
| 1649 | return mdInput; |
| 1650 | } |
| 1651 | addHTMLArea(html: (() => HTMLElement) | HTMLElement, submit: () => void = () => {}) { |
| 1652 | const htmlarea = new HtmlArea(html, submit); |
| 1653 | this.options.push(htmlarea); |
| 1654 | this.generate(htmlarea); |
| 1655 | return htmlarea; |
| 1656 | } |
| 1657 | addButtonInput(label: string, textContent: string, onSubmit: () => void) { |
| 1658 | const button = new ButtonInput(label, textContent, onSubmit, this); |
| 1659 | this.options.push(button); |
| 1660 | this.generate(button); |
| 1661 | return button; |
| 1662 | } |
| 1663 | addSubButtonInput( |
nothing calls this directly
no test coverage detected