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

Method constructor

src/webpage/settings.ts:399–404  ·  view source on GitHub ↗
(label: string, textContent: string, onClick: () => void, owner: Options, {} = {})

Source from the content-addressed store, hash-verified

397 generateHTML(): HTMLDivElement {
398 const div = document.createElement("div");
399 const span = document.createElement("span");
400 span.textContent = this.label;
401 div.append(span);
402 const input = document.createElement("input");
403 input.type = "checkbox";
404 input.checked = this.value;
405 input.oninput = this.onChange.bind(this);
406 this.input = new WeakRef(input);
407 div.append(input);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected