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

Method constructor

src/webpage/settings.ts:617–630  ·  view source on GitHub ↗
(
		label: string,
		onSubmit: (str: number) => void,
		options: readonly string[],
		owner: Options,
		{defaultIndex = 0, radio = false} = {},
	)

Source from the content-addressed store, hash-verified

615 addbg.classList.add("addbg");
616 const add = document.createElement("span");
617 add.classList.add("svgicon", "svg-plus");
618 addbg.append(add);
619 s.append(addbg);
620 add.onclick = (e) => {
621 this.popUpSearchBox(e.x, e.y, () => {
622 genArea();
623 this.onchange(this.value);
624 });
625 };
626 };
627 genArea();
628 div.append(s);
629 return div;
630 }
631 async popUpSearchBox(x: number, y: number, done: () => void) {
632 const searchBox = document.createElement("div");
633 searchBox.style.top = y + "px";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected