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

Method constructor

src/webpage/settings.ts:364–375  ·  view source on GitHub ↗
(
		textContent: string,
		onClick: (opt: Options) => void,
		owner: Options,
		{} = {},
		opts?: SubButtonInput["opts"],
	)

Source from the content-addressed store, hash-verified

362 watchForChange() {}
363 submit() {}
364}
365class SettingsTitle implements OptionsElement<void> {
366 readonly onSubmit!: (str: string) => void;
367 value!: void;
368 readonly text: string;
369 constructor(text: string) {
370 this.text = text;
371 }
372 generateHTML(): HTMLSpanElement {
373 const span = document.createElement("h2");
374 span.innerText = this.text;
375 return span;
376 }
377 watchForChange() {}
378 submit() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected