(label: string, formName: string, {initColor = "", required = false} = {})
| 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 | } |
no test coverage detected