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

Method constructor

src/webpage/settings.ts:490–503  ·  view source on GitHub ↗
(
		label: string,
		onSubmit: (str: string[]) => void,
		selections: AsyncMultiSelect["searchFunc"],
		owner: Options,
		{defaultValues = []}: {defaultValues: searchRes[]} = {defaultValues: []},
	)

Source from the content-addressed store, hash-verified

488 if (this.label) {
489 const span = document.createElement("span");
490 span.classList.add("inlinelabel");
491 span.textContent = this.label;
492 div.append(span);
493 }
494 const button = document.createElement("button");
495 button.textContent = this.textContent;
496 button.onclick = this.onClickEvent.bind(this);
497 this.buttonHtml = button;
498 div.append(button);
499 return div;
500 }
501 private onClickEvent() {
502 this.onClick();
503 }
504 watchForChange() {}
505 submit() {}
506}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected