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

Method constructor

src/webpage/settings.ts:142–155  ·  view source on GitHub ↗
(
		label: string,
		onSubmit: (str: string) => void,
		owner: Options,
		{initText = "", password = false, spaceReplace = " ", name = ""} = {},
	)

Source from the content-addressed store, hash-verified

140 elm.classList.remove("activeSetting");
141 }
142 }
143 this.last = buttonInfo;
144 const elm = this.buttonMap.get(buttonInfo);
145 if (elm) {
146 elm.classList.add("activeSetting");
147 }
148 let html: HTMLElement;
149 if (buttonInfo instanceof Options) {
150 buttonInfo.subOptions = undefined;
151 html = buttonInfo.generateHTML();
152 } else {
153 html = this.handleString(buttonInfo);
154 }
155
156 htmlarea.innerHTML = "";
157 htmlarea.append(html);
158

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected