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

Method addTextInput

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

Source from the content-addressed store, hash-verified

1514 ) {
1515 const options = new Form(name, this, onSubmit, {
1516 ltr,
1517 submitText,
1518 fetchURL,
1519 headers,
1520 method,
1521 traditionalSubmit,
1522 tfaCheck,
1523 });
1524 this.subOptions = options;
1525 this.genTop();
1526 return options;
1527 }
1528 addEmojiInput(
1529 label: string,
1530 onSubmit: (str: Emoji | null | undefined) => void,
1531 localuser: Localuser,
1532 {initEmoji = undefined, clear = false, guild = true} = {} as {
1533 initEmoji?: Emoji;

Callers

nothing calls this directly

Calls 1

generateMethod · 0.95

Tested by

no test coverage detected