(buttond: [string, string | Options], optionsArea: HTMLElement)
| 66 | color, |
| 67 | initable, |
| 68 | }; |
| 69 | this.buttons.push(button); |
| 70 | const htmlarea = this.htmlarea.deref(); |
| 71 | const buttonTable = this.buttonTable.deref(); |
| 72 | if (buttonTable && htmlarea) buttonTable.append(this.makeButtonHTML(button, htmlarea)); |
| 73 | return inner; |
| 74 | } |
| 75 | htmlarea = new WeakRef(document.createElement("div")); |
| 76 | buttonTable = new WeakRef(document.createElement("div")); |
| 77 | generateHTML(hideButtons = false) { |
| 78 | const buttonList = document.createElement("div"); |
| 79 | buttonList.classList.add("Buttons"); |
| 80 | buttonList.classList.add(this.top ? "flexttb" : "flexltr"); |
| 81 | this.buttonList = buttonList; |
| 82 | const htmlarea = document.createElement("div"); |
| 83 | htmlarea.classList.add("flexgrow", "settingsHTMLArea"); |
| 84 | const buttonTable = this.generateButtons(htmlarea); |
no test coverage detected