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

Method addCheckboxInput

src/webpage/settings.ts:2196–2203  ·  view source on GitHub ↗
(label: string, formName: string, {initState = false, required = false} = {})

Source from the content-addressed store, hash-verified

2194 label: string,
2195 formName: string,
2196 {required = false, files = "one", clear = false, initImg = "", width = -1, objectFit = ""} = {},
2197 ) {
2198 const FI = this.options.addImageInput(label, (_) => {}, {clear, initImg, width, objectFit});
2199 if (files !== "one" && files !== "multi") throw new Error("files should equal one or multi");
2200 this.fileOptions.set(FI, {files});
2201 this.names.set(formName, FI);
2202 if (required) {
2203 this.required.add(FI);
2204 }
2205 return FI;
2206 }

Callers 11

setUpContextMenuMethod · 0.45
showusersettingsMethod · 0.45
manageApplicationMethod · 0.45
manageBotMethod · 0.45
makePollMethod · 0.45
genPageMethod · 0.45
makeguildmenusMethod · 0.45
findAdminMethod · 0.45
generateSettingsMethod · 0.45
generateSettingsMethod · 0.45
makeTagHTMLMethod · 0.45

Calls 1

addMethod · 0.80

Tested by

no test coverage detected