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

Method addFileInput

src/webpage/settings.ts:2086–2099  ·  view source on GitHub ↗
(
		label: string,
		formName: string,
		{required = false, files = "one", clear = false} = {},
	)

Source from the content-addressed store, hash-verified

2084 tfaCheck = true,
2085 } = {},
2086 ) {
2087 this.traditionalSubmit = traditionalSubmit;
2088 this.name = name;
2089 this.tfaCheck = tfaCheck;
2090 this.method = method;
2091 this.submitText = submitText;
2092 this.options = new Options(name, this, {ltr, vsmaller});
2093 this.owner = owner;
2094 this.fetchURL = fetchURL;
2095 this.headers = headers;
2096 this.ltr = ltr;
2097 this.onSubmit = onSubmit;
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 }

Callers 3

settingsMethod · 0.45
makeHookFunction · 0.45
generateSettingsMethod · 0.45

Calls 1

addMethod · 0.80

Tested by

no test coverage detected