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

Method addImageInput

src/webpage/settings.ts:2100–2113  ·  view source on GitHub ↗
(
		label: string,
		formName: string,
		{required = false, files = "one", clear = false, initImg = "", width = -1, objectFit = ""} = {},
	)

Source from the content-addressed store, hash-verified

2098 }
2099 setValue(key: string, value: any) {
2100 //the value can't really be anything, but I don't care enough to fix this
2101 this.values[key] = value;
2102 }
2103 addSubOptions(name: string, {ltr = false, noSubmit = false} = {}) {
2104 if (this.button && this.button.deref()) {
2105 (this.button.deref() as HTMLElement).hidden = true;
2106 }
2107 return this.options.addSubOptions(name, {ltr, noSubmit});
2108 }
2109 addSubButtonInput(
2110 textContent: string,
2111 onSubmit: (opt: Options) => void,
2112 {ltr = false, noSubmit = false, intText = ""} = {},
2113 ) {
2114 return this.options.addSubButtonInput(textContent, onSubmit, {ltr, noSubmit, intText});
2115 }
2116 addHTMLArea(html: (() => HTMLElement) | HTMLElement, onSubmit = () => {}) {

Callers 9

editMethod · 0.45
editProfileMethod · 0.45
createGuildMethod · 0.45
showusersettingsMethod · 0.45
manageApplicationMethod · 0.45
manageBotMethod · 0.45
makeguildmenusMethod · 0.45
generateSettingsMethod · 0.45
generateSettingsMethod · 0.45

Calls 1

addMethod · 0.80

Tested by

no test coverage detected