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

Method addColorInput

src/webpage/settings.ts:2163–2172  ·  view source on GitHub ↗
(label: string, formName: string, {initColor = "", required = false} = {})

Source from the content-addressed store, hash-verified

2161 label: string,
2162 formName: string,
2163 selections: string[],
2164 {defaultIndex = 0, required = false, radio = false} = {},
2165 correct: readonly (string | number | null | undefined)[] = selections,
2166 ) {
2167 const select = this.options.addSelect(label, (_) => {}, selections, {
2168 defaultIndex,
2169 radio,
2170 });
2171 this.selectMap.set(select, correct);
2172 this.names.set(formName, select);
2173 if (required) {
2174 this.required.add(select);
2175 }

Callers 7

settingsMethod · 0.45
editProfileMethod · 0.45
makeGuildDragableMethod · 0.45
makeFolderMethod · 0.45
showusersettingsMethod · 0.45
makeguildmenusMethod · 0.45
colorOptGenMethod · 0.45

Calls 1

addMethod · 0.80

Tested by

no test coverage detected