MCPcopy Create free account
hub / github.com/MathMan05/Fermi / makeButtonHTML

Method makeButtonHTML

src/webpage/settings.ts:68–81  ·  view source on GitHub ↗
(buttond: [string, string | Options], optionsArea: HTMLElement)

Source from the content-addressed store, hash-verified

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);

Callers 2

addMethod · 0.95
generateButtonsMethod · 0.95

Calls 3

generateHTMLAreaMethod · 0.95
addMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected