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

Method generateHTML

src/webpage/settings.ts:447–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445 textContent: string,
446 onClick: (opt: Options) => void,
447 owner: Options,
448 {} = {},
449 opts?: SubButtonInput["opts"],
450 ) {
451 this.owner = owner;
452 this.onClick = onClick;
453 this.textContent = textContent;
454 this.opts = opts;
455 }
456 buttonHtml?: HTMLButtonElement;
457 generateHTML(): HTMLDivElement {
458 const div = document.createElement("div");
459 const button = document.createElement("button");
460 button.classList.add("subButton");
461 button.textContent = this.textContent;
462 button.onclick = () => {

Callers

nothing calls this directly

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected